Add WIP kvm guide stuff
parent
ea8580a90c
commit
0a37652623
@ -0,0 +1,73 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="author" content="Nathan (Aney) Steel">
|
||||||
|
<meta name="theme-color" content="white">
|
||||||
|
<meta name="theme-color" content="black">
|
||||||
|
<link rel="stylesheet" type="text/css" href="/main.css">
|
||||||
|
<link rel="icon" type="image/png" href="/images/favicon.svg">
|
||||||
|
<title>KVM Optimisation</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<a href="#main" class="vh">Jump directly to main content</a>
|
||||||
|
<h1>KVM Optimisation</h1>
|
||||||
|
<input id="burger-toggle" type="checkbox"/>
|
||||||
|
<label class="burger-container" for="burger-toggle"><div class="burger"></div><span class="sr">Burger menu</span></label>
|
||||||
|
<hr/>
|
||||||
|
<nav>
|
||||||
|
<a href="/">home</a>
|
||||||
|
<a href="/about.html">about</a>
|
||||||
|
<a href="/projects.html">projects</a>
|
||||||
|
<a href="/blog/">blog</a>
|
||||||
|
<a href="/sitemap.html">misc</a>
|
||||||
|
<a href="/support.html">support</a>
|
||||||
|
</nav>
|
||||||
|
<hr/>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main id="main">
|
||||||
|
<section>
|
||||||
|
<h2>KVM Optimisations</h2>
|
||||||
|
|
||||||
|
transmit queue
|
||||||
|
virsh domiflist <vm>
|
||||||
|
# this is then the txqueuelen change below ???
|
||||||
|
# changing to 4096
|
||||||
|
ifconfig <interface_name> txqueuelen <length>
|
||||||
|
|
||||||
|
txqueuelen (iwbcman comment)
|
||||||
|
defaults to 1000, apparently 200 is good
|
||||||
|
|
||||||
|
ip link set eth0 txqueuelen 200
|
||||||
|
vim /etc/network/interfaces
|
||||||
|
add
|
||||||
|
post-up /sbin/ip link set eth0 txqueuelen 200
|
||||||
|
to the end
|
||||||
|
|
||||||
|
If virtual hdd is slow can try
|
||||||
|
Cache mode: none (not default!)
|
||||||
|
I/O mode: native<Paste>
|
||||||
|
https://unix.stackexchange.com/a/48584
|
||||||
|
|
||||||
|
non caching on dirves?
|
||||||
|
https://blog.jdpfu.com/2012/07/30/improving-kvm-performance
|
||||||
|
://documentation.suse.com/smart/linux/html/concept-virtual-disk-cache-modes/concept-virtual-disk-cache-modes.html#:~:text=A%20disk%20cache%20is%20a,example%2C%20by%20setting%20its%20type.
|
||||||
|
On VM turning cache off essentially acts like accessing the drive itself. No exactly a passthrough, but decent enough
|
||||||
|
|
||||||
|
http://www.linux-kvm.org/page/Tuning_KVM
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<hr/>
|
||||||
|
<p>Written by <a href="https://aney.co.uk" target="_blank" rel="noopener">@aney</a> with <a href="https://danluu.com/web-bloat/" target="_blank" rel="noopener">web bloat</a> in mind | <a href="https://github.com/Aney/website" target="_blank" rel="noopener">Source Code</a></p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
Loading…
Reference in New Issue