Re: about the tmpmfs=YES in rc.conf
On 2004-11-11 16:36, LEI CHEN [EMAIL PROTECTED] wrote: On Thu, 2004-11-11 at 16:11, Giorgos Keramidas wrote: On 2004-11-11 04:36, LEI CHEN [EMAIL PROTECTED] wrote: On Thu, 2004-11-11 at 03:44, Giorgos Keramidas wrote: If you're using the -pipe option of gcc, it shouldn't make such a great difference where /tmp is. I suspect it will make a HUGE difference where your /usr/obj tree is stored though. yes, I've read this in the handbook, /usr/obj shadows /usr/src directories. But how can I put it into memory? Using mdmfs(8). The mdmfs(8) utility is what does all the work behind the tmpmfs=YES option in rc.conf. I've found this url http://bsdvault.net/sections.php?op=viewarticleartid=53 very helpful. But I got only 256Mb of memory, so I can't mount 300Mb mfs into RAM. Hmm, then it's probably not a very good idea to mount /usr/obj as a memory disk. Using swap backed (instead of malloc backed) md file systems is something I haven't tested, but my intuition says it's not going to be much faster than using a real disk partition. It's more likely to be slower, IMHO. And therefore I can only mount 128Mb or so. Well in this case, would there be a memory overflow during make world? And what to do if this is the case? A filesystem overflow (and a broken buildworld because of the inability to write some object files), yes. A memory overflow, no, not really. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
about the tmpmfs=YES in rc.conf
Hi guys, I have just upgraded to 5-stable branch, and I noticed that the tmpmfs=YES and tmpsize=20m options can be put into /etc/rc.conf directly to create a memory file system automatically. My question is do I need to comment out the line to mount tmp on startup in the file /etc/fstable if I added those two options above into rc.conf? Cheers, LEI CHEN ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: about the tmpmfs=YES in rc.conf
On 2004-11-11 01:28, LEI CHEN [EMAIL PROTECTED] wrote: I have just upgraded to 5-stable branch, and I noticed that the tmpmfs=YES and tmpsize=20m options can be put into /etc/rc.conf directly to create a memory file system automatically. Yesterday, I have committed a couple of enhancements to the tmpmfs in CURRENT. If you plan on using tmpmfs=YES, mail me privately and I'll tell you how to merge the changes with your existing setup once the tmpmfs stuff is merged from CURRENT to RELENG_5 (in a few days). My question is do I need to comment out the line to mount tmp on startup in the file /etc/fstable if I added those two options above into rc.conf? Do you have a separate disk partition that is mounted as /tmp? If yes, then mounting an md file system over /tmp will probably conflict with your current setup and you'll have to remove the entry from fstab (or at least comment it out, while you are checking the tmpmfs stuff). - Giorgos ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: about the tmpmfs=YES in rc.conf
I've just added those two options into /etc/rc.conf and commented out the line in /etc/fstab. It works! :) df -h output is : Filesystem size used avail capacity Mounted on ... ... /dev/md031M 16k 28M0%/tmp I am just wondering what would be the mfs size that suitable for me? I have PIII 850 256MB laptop. Cheers, LEI On Thu, 2004-11-11 at 01:37, Giorgos Keramidas wrote: On 2004-11-11 01:28, LEI CHEN [EMAIL PROTECTED] wrote: I have just upgraded to 5-stable branch, and I noticed that the tmpmfs=YES and tmpsize=20m options can be put into /etc/rc.conf directly to create a memory file system automatically. Yesterday, I have committed a couple of enhancements to the tmpmfs in CURRENT. If you plan on using tmpmfs=YES, mail me privately and I'll tell you how to merge the changes with your existing setup once the tmpmfs stuff is merged from CURRENT to RELENG_5 (in a few days). My question is do I need to comment out the line to mount tmp on startup in the file /etc/fstable if I added those two options above into rc.conf? Do you have a separate disk partition that is mounted as /tmp? If yes, then mounting an md file system over /tmp will probably conflict with your current setup and you'll have to remove the entry from fstab (or at least comment it out, while you are checking the tmpmfs stuff). - Giorgos ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: about the tmpmfs=YES in rc.conf
On 2004-11-11 02:17, LEI CHEN [EMAIL PROTECTED] wrote: On Thu, 2004-11-11 at 01:37, Giorgos Keramidas wrote: On 2004-11-11 01:28, LEI CHEN [EMAIL PROTECTED] wrote: I have just upgraded to 5-stable branch, and I noticed that the tmpmfs=YES and tmpsize=20m options can be put into /etc/rc.conf directly to create a memory file system automatically. Yesterday, I have committed a couple of enhancements to the tmpmfs in CURRENT. If you plan on using tmpmfs=YES, mail me privately and I'll tell you how to merge the changes with your existing setup once the tmpmfs stuff is merged from CURRENT to RELENG_5 (in a few days). I've just added those two options into /etc/rc.conf and commented out the line in /etc/fstab. It works! :) df -h output is : Filesystem size used avail capacity Mounted on ... ... /dev/md031M 16k 28M0%/tmp I am just wondering what would be the mfs size that suitable for me? I have PIII 850 256MB laptop. That depends on what you usually do with temporary stuff in /tmp. The cpu speed doesn't have anything to do with this ;-) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: about the tmpmfs=YES in rc.conf
On Thu, 2004-11-11 at 16:11, Giorgos Keramidas wrote: On 2004-11-11 04:36, LEI CHEN [EMAIL PROTECTED] wrote: On Thu, 2004-11-11 at 03:44, Giorgos Keramidas wrote: If you're using the -pipe option of gcc, it shouldn't make such a great difference where /tmp is. I suspect it will make a HUGE difference where your /usr/obj tree is stored though. yes, I've read this in the handbook, /usr/obj shadows /usr/src directories. Cool :) But how can I put it into memory? Using mdmfs(8). The mdmfs(8) utility is what does all the work behind the tmpmfs=YES option in rc.conf. I've found this url http://bsdvault.net/sections.php?op=viewarticleartid=53 very helpful. But I got only 256Mb of memory, so I can't mount 300Mb mfs into RAM. And therefore I can only mount 128Mb or so. Well in this case, would there be a memory overflow during make world? And what to do if this is the case? Cheers, LEI ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]