summaryrefslogtreecommitdiffstats
path: root/Documentation/lguest
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-07-29 16:58:37 +0200
committerRusty Russell <rusty@rustcorp.com.au>2008-07-29 01:58:38 +0200
commit0f0c4fab8284f3b886b2e1e0e317e3bb8de176b3 (patch)
tree2509e74b573bac7560f42cc7ab3640814cf683d7 /Documentation/lguest
parentlguest: Use GSO/IFF_VNET_HDR extensions on tun/tap (diff)
downloadlinux-0f0c4fab8284f3b886b2e1e0e317e3bb8de176b3.tar.xz
linux-0f0c4fab8284f3b886b2e1e0e317e3bb8de176b3.zip
lguest: Enlarge virtio rings
With big packets, 128 entries is a little small. Guest -> Host 1GB TCP: Before: 8.43625 seconds xmit 95640 recv 198266 timeout 49771 usec 1252 After: 8.01099 seconds xmit 49200 recv 102263 timeout 26014 usec 2118 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'Documentation/lguest')
-rw-r--r--Documentation/lguest/lguest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/lguest/lguest.c b/Documentation/lguest/lguest.c
index dc49f50e04ac..f9bba2d8fee1 100644
--- a/Documentation/lguest/lguest.c
+++ b/Documentation/lguest/lguest.c
@@ -66,8 +66,8 @@ typedef uint8_t u8;
#endif
/* We can have up to 256 pages for devices. */
#define DEVICE_PAGES 256
-/* This will occupy 2 pages: it must be a power of 2. */
-#define VIRTQUEUE_NUM 128
+/* This will occupy 3 pages: it must be a power of 2. */
+#define VIRTQUEUE_NUM 256
/*L:120 verbose is both a global flag and a macro. The C preprocessor allows
* this, and although I wouldn't recommend it, it works quite nicely here. */