* Re: bogus swap space rule-of-thumb (was Re: UDB ( adding
[not found] <19970413095731.450.qmail@brouhaha.com>
@ 1997-04-13 18:12 ` Maurice W. Hilarius
1997-04-13 19:02 ` Michal Jaegermann
0 siblings, 1 reply; 3+ messages in thread
From: Maurice W. Hilarius @ 1997-04-13 18:12 UTC (permalink / raw)
At 09:57 AM 04-13-97 -0000, you wrote:
>> 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.
>
>Gee, so on my Intel box which has 192M of physical RAM, I should have
>384M of swap? And on my Alpha with 88M of RAM I should have 176M of swap?
>I don't think so.
>
>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.
Thing is, if you allow lots, you are safe. If you run out, oh well,
increase your swap. No big deal (unless you run out in the middle of a 3
day process that needs more RAM, and you are in a hurry!) The thing is, it
depends what you are doing. If the machine is a generally unattended
server, which is mission critical, you BETTER have enough swap defined, or
some users will be having conversations with you... ;-}
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
varying degrees of success. Downside to this is that if you use up too much
filespace, you may be running too little swap. Double-edged sword.
Cheers,
Maurice
+--------------------------------------------------------+
| Maurice Hilarius | The Past is History |
| President | The Future is Mystery |
| Hard Data Ltd. | Today is a Gift |
| Phone/FAX (403) 456-1510 | That is why they call it |
| email:harddata@bigfoot.com | The Present |
+--------------------------------------------------------+
--
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* Re: bogus swap space rule-of-thumb (was Re: UDB ( adding
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
0 siblings, 0 replies; 3+ messages in thread
From: Michal Jaegermann @ 1997-04-13 19:02 UTC (permalink / raw)
Maurice Hilarius wrote:
>
> I wonder if anyone has seen any work being done for Linux to use a
> "dynamic" swap of any useful kind?
Yes, sure, on Linux you can see everything. :-) First of all
there is 'swapd' daemon available for quite some time. Check
usual places. Fairly recently there were also annoucements
with entries like this:
Begin3
Title: real-demand-swap
Version: 0.1
Entered-date: 02MAR97
Description: A patch to the demand swap daemon ond the kernel to
communicate via the kerneld IPC mechanism, making swapd useful
at last.
Keywords: demand swap memory
Author: Ian T Zimmerman <itz@rahul.net>
Maintained-by: Ian T Zimmerman <itz@rahul.net>
Primary-site: sunsite.unc.edu /pub/Linux/kernel/patches/misc
4395 real-demand-swap-0.1.tar.gz
565 real-demand-swap-0.1.lsm
Alternate-site: ftp.rahul.net /pub/itz
Platforms: swapd-1.3
Copying-policy: GPL
End
I am not sure what "making swapd useful at last" really means, as
I did not try either swapd or these patches. Also, as you can see
from a version number, these patches are "early beta" although currently
they are at 0.3, or something like that, if I remember correctly.
Anyway, if you are running out of swap - try this out.
Michal
--
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
* 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