lkml.org 
[lkml]   [2001]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Special Kernel Modification
Date
Jeff, 
> Mounting it synchronous will disable caching in the VM.
Who told you that? Synchronous mounting turns off write buffering. Even with
"-o sync" writes will still end up in the page cache, they'll just be
commited immediately. In case you don't believe me, here's a trivial test on
a block device mounted -o sync (ext3):

bodnar42:/mnt# time cat linux-2.4.13.tar.bz2 > /dev/null

real 0m2.837s
user 0m0.040s
sys 0m0.350s
bodnar42:/mnt# time cat linux-2.4.13.tar.bz2 > /dev/null

real 0m0.328s
user 0m0.010s
sys 0m0.240s
bodnar42:/mnt#

Trust me, the factor of 8 performace improvement the second time is not due
to lucky head positioning or anything, that's coming straight out of cache.

> Another possibility is hostfs. You can directly mount a host directory
> inside UML. That can obviously be shared between UMLs, so you again
> eliminate all the duplication.
Er, it will be shared in the host's context, but each VM will still have
their own copy in the page cache. This is no better than a COW'ed block device

-Ryan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:12    [W:0.057 / U:7.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site