Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: bogus swap space rule-of-thumb (was Re: UDB ( adding
@ 1997-04-14 16:19 Przemek Klosowski
  0 siblings, 0 replies; 3+ messages in thread
From: Przemek Klosowski @ 1997-04-14 16:19 UTC (permalink / raw)


>> 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 <przemek@nist.gov>  (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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-04-14 16:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <19970413095731.450.qmail@brouhaha.com>
1997-04-13 18:12 ` bogus swap space rule-of-thumb (was Re: UDB ( adding Maurice W. Hilarius
1997-04-13 19:02   ` Michal Jaegermann
1997-04-14 16:19 Przemek Klosowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox