From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199704141619.MAA28007@rrdjazz.nist.gov> Date: Mon, 14 Apr 1997 12:19:50 -0400 From: Przemek Klosowski Subject: Re: bogus swap space rule-of-thumb (was Re: UDB ( adding >> For Linux/x86 twice the memsize is recommended for swap. I believe that >> this is generally assumed to be valid for axp as well, but I doubt if >> anyone ever investigated this. > >The problem with this sort of rule of thumb is that.. You are right of course. BUT, as you said, it's just a "rule of thumb" Nobody else knows how much memory you are going to need for your purposes. I wonder if anyone has seen any work being done for Linux to use a "dynamic" swap of any useful kind? Soem OS's have implemeted this, to Two comments: first, the disk access is still at most 5MB/sec for many people, so if you put in 100MB swap, it takes at least 20 seconds to actually use it (in other words if you truly use it, you are in trouble). Secondly, it is possible to swap to a file, and turn on swapping on the fly: dd if=/dev/zero of=/tmp/swapfile bs=1k count=5000 (create a 50MB file) /sbin/mkswap /tmp/swapfile 5000 /sbin/swapon /tmp/swapfile It is slower than swapping to a partition, but it's great in a pinch. I now routinely set up 40MB swap regardless of the memory size (just to avoid getting in a bind because 2MB of memory was missing), and rely on temp swap for short term solution, and SIMM swap for long term :^) przemek klosowski (301) 975-6249 NIST Center for Neutron Research (bldg. 235), E111 National Institute of Standards and Technology Gaithersburg, MD 20899, USA -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com