Date: Tue, 29 Sep 1998 00:09:35 -0500 From: "Jeffrey J. Mountin" <jeff@mountin.net> To: freebsd-isp@FreeBSD.ORG Cc: freebsd-bugs@FreeBSD.ORG Subject: MFS, mount, and vmdaemon Message-ID: <3.0.3.32.19980929000935.00718e6c@207.227.119.2>
next in thread | raw e-mail | index | archive | help
Posted to both bugs and isp, much as I don't like to do this. Maybe this should be on hackers too. 8-) Don't quite know if this is a bug, but when using a MFS for /tmp and you do a 'mount -a' a second MFS for /tmp is created. This shows up with 'df' and 'ps', but one can be killed without problem it seems. Using noauto, like with a CDROM, means it will not mount initially. Doesn't seem like good behaviour. This also leads to a question. Can you have 2 MFS in fstab? Something like: /dev/wd0s1b none swap sw 0 0 /dev/wd0s1b /tmp mfs rw 0 0 /dev/wd0s1b /htdocs mfs rw 0 0 I presume that any MFS must use the swap (or a swap), but can't find anything saying you can or cannot use more than one. Or is it best to (sym)link /htdocs to /tmp instead, which works fine, but I'm toying with a few ideas. In past I thought of running a web site off of MFS and in part plan to do so still. One thing about running FBSD with plenty of memory is how fast things get once the cache and active pages increase: last pid: 8865; load averages: 0.21, 0.21, 0.19 00:01:28 40 processes: 2 running, 36 sleeping, 2 zombie CPU states: % user, % nice, % system, % interrupt, % idle Mem: 137M Active, 46M Inact, 28M Wired, 34M Cache, 8318K Buf, 5444K Free It took less than 4 seconds to copy 11MB from the htdocs directory to the MFS version of the htdocs directory, which tells me that many of the files were in memory. Subsequent copies are almost instant. Normal performance with only 96MB vs 256MB is astronmical. Must say the vmdaemon does a good job. Even the MFS's resident size will shrink and I pushed it to 80MB from the startup of 7MB, but without keeping the files present and it dropped in size as the memory load went up. Still would be nice to start with all htdocs on MFS, but also wonder if the vmdaemon duplicates this by keeping files from the MFS in memory, which seems kind of redundant and wasteful. comments? Jeff Mountin - Unix Systems TCP/IP networking jeff@mountin.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.3.32.19980929000935.00718e6c>