On Tuesday 25 January 2005 23:59, Christian Wicke wrote: > > You don't need extra memory to use tmpfs. > > > > Yes, it speeds up. I have load 4-5-10 (P4, 2.8, 2G RAM, scsi raid5, > > kernel 2.4, skas patch) without it. With tmpfs I've load 0.6-1-2. (in > > daytime). > > I created a new dir /var/local/afprod2/tmp, mounted tmpfs with > $ mount -t tmpfs -o mode=1777,size=222M none /var/local/afprod2/tmp > and startet the guest with > HOME=/var/local/afprod2 TMPDIR=/var/local/afprod2/tmp linux ... > But I don't measure any performance increase. > Do I miss something? Do I need a special kernel? No. I've checked better, and the first env. var to get checked is TMP, then TEMP, then TEMPDIR. Try using TMP instead of TMPDIR and you'll likely notice the improvement.
char *dirs[] = { "TMP", "TEMP", "TMPDIR", NULL }; Also (another unrelated tip), make sure you don't use the "Synchronous UBD" kernel config option if you have a kernel earlier than 2.6.9 - it causes a big performance slowdown... replacing ubd0= with ubd0s= does not give the slowdown. > > I have this problems too. The uml's waiting to IO (i think) some times, > > there is 80%idle, and load 4. > > And the uml-s eating the memory. I think > > it is because the double caching. Check this: > How can double caching cause blocking IO? Isn't it just a little waste of > memory? He speaks about the "eating memory"... > Thanks > Christian -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user