Linux Newbie help
 help / color / mirror / Atom feed
* RE: RAM and swap partition
@ 2002-12-09 18:22 james miller
  2002-12-09 18:47 ` Ray Olszewski
                   ` (3 more replies)
  0 siblings, 4 replies; 24+ messages in thread
From: james miller @ 2002-12-09 18:22 UTC (permalink / raw)
  To: linux-newbie

Let me pose the RAM question in another way to see if it can elicit a 
generic, "rule-of-thumb" response this way. If a person uses their 
computer as a sort of personal workstation using a fairly recent distro 
and requires that it have an Xwindows gui, using applications like web 
browsers, email clients, wordprocessing software and maybe Gimp on 
occassion, at what point would such a person need to have a swap 
partition? In other words, can it be stated in somewhat generic terms 
"if said user had less than X MB RAM, they will definitely need a swap 
partition"? And what about guidelines for swap partition size in such a 
case: can such be stated as well? Like, say, "if this individual has 
only 32 MB RAM, he should have a 64 MB swap partition" or "if he has 64 
MB RAM he'll only need a 64 MB swap partition"?

Thanks, James

>===== Original Message From Chuck Gelm <nc8q@gelm.net> =====
>Ditto to what Ray said.
>
> Perhaps you could run your system with a 'swap file' and see
>how big it ever gets.  Then make a swap partition just that size
>or a little larger.  ;-)
>
> My current firewall-router (aDSL to 100 Mb LAN) has 32 megabytes
>  of RAM and has not used any swap memory, AFAICR.
> Another workstation with 64 M of RAM has used 3 M of swap.
> Another workstation with 160 M of RAM has used 2 M of swap.
> Another laptop with 16 M of RAM, XFfree86 v4.0.3, and I just
>  ran Netscape v4.77 under fvwm95, loaded a small web page,
>  has used 2.6 M of swap.
>
> IMHO, it depends.  ;-)
>
>HTH, Chuck
>
>Ray Olszewski wrote:
>>
>> At 01:15 PM 12/8/02 +0000, Rolf Edlund wrote:
>> >Originally to: james niland
>> >
>> >
>> >  jn> I know some people who run happily without a swap at all.
>> >
>> >How low RAM can I use, without running a swap ? Can I for example
>do it on
>> >a 486
>> >with 4 MB RAM ?
>>
>> The way you ask this question, it has no real answer. How little
>memory a
>> system can run with depends on what tasks it is doing. And the
>choice of
>> CPU is pretty much irrelevant to this question (its only slight
>relevance
>> is in the smaller size of CPU-specific kernels).
>>
>> That said ... running any sort of Linux system in less than 8 MB of
>real
>> (not swap) RAM poses special challenges ... most modern distros
>can't even
>> install on such systems (only Slackware, I think, still offers a
>"low
>> memory" install option) and you won't be able to do much with such
>a
>> system. In practice, the smallest systems I've ever run without
>swap were
>> 486s with 16 MB of RAM, and that was for special purpose systems
>like
>> routers. While these days I routinely run my workstations without a
>swap
>> partition, they have at least 256 MB of RAM.
>>
>> --
>> -------------------------------------------"Never tell me the
>odds!"--------
>> Ray Olszewski                                   -- Han Solo
>> Palo Alto, California, USA                        ray@comarre.com
>>
>-----------------------------------------------------------------------------
--
>>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: RAM and swap partition
@ 2002-12-16  0:00 Heimo Claasen
  2002-12-16 21:33 ` Chuck Gelm
  0 siblings, 1 reply; 24+ messages in thread
From: Heimo Claasen @ 2002-12-16  0:00 UTC (permalink / raw)
  To: linux-newbie

Chuck - that swapfile: has it to be created anew just before any
prog/app is run ? Or could I just leave it "on" ?

Well, and then - can I conclude from this that a swap _partition_ is
basically used like a file ?
(Or else: would programs which need swap create their _specific_ files
in a swap partition ?)

-heimo
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: RAM and swap partition
@ 2002-12-15  0:00 Heimo Claasen
  2002-12-15  4:07 ` Chuck Gelm
  0 siblings, 1 reply; 24+ messages in thread
From: Heimo Claasen @ 2002-12-15  0:00 UTC (permalink / raw)
  To: linux-newbie

Ok, ok, Chuck - sure "it depends" ;)
(and oops, hwo do I use a swap _file_ instead of the "prescribed"
partition ?)

From your list, I conclude that it depends on all those six-and-a-half
factors, even if I'm not soooo convinced what for instance, "distro
AND version" (on top of the kernel number), the BogoMIPS or even the
HD speed, would have to do with it.

And then I have this experience with one (notabene experimental) sound
application which just doesn't care for how much swap there is - but
it is a darn memhog in itself: it crashes if the data file (or too many
together) loaded need too much _RAM_, regardless of how large I dimension
the swap.
So this real and practical example would tell me: no swap partition
needed (EXACTLY for this one app.)

Another real-life case is with that not-so-brandnew laptop and its
"small" HD of 2 GB and "poor" RAM (48 MB) installed, where Linux has
to share space with a windoze and a small DOS partition. This runs
vanilla apps in Linux - a GUI + a browser (including the connectivity
gears) + a plug-in pic viewer at most, simultaneously. Here, seen HD
space and RAM available (both hugely enormous, seen from my past-&-present
DOS uses; all real work, including almost all net-work needed, is done
in text mode and in the miniscule DOS compartment), the volume to set
aside for a swap partition is even a "critical" decision.

Then there is one factor which you did not mention but which might be
of decisive importance: if a unit is used by one person, it would most
probably have just one user (and a very few "user accounts" only) and
simultaneous use of different apps would be probably limited or rather,
the user-"system-owner-administrator" could be enabled to establish a
reasonable estimate of the real need for swap space on the perhaps
not-so-enormously-new/big-HD -- _if_ s/he had some ways or indications
for calculating it.

I think this is a reasonable demand, and I'm looking for some means to
answer to this.  So, how would I measure how much swap this kernel or
that application (in combination with what GUI, for instance) would
need, in fact ?

> it may be suggested EXACTLY how much swap space you will need.

Hmm, for that laptop for instance, running yet a much too FAT Mandrake 8.2
with kernel 2.4.18 (because Debian would not find the good video driver
for the trickish LCD). I would gladly dish the mem-(and how much swap-?)
hogging KDE and Nutsrape with it; though, regrettably, it must be able to
run X and a SSL-capable net connection.

I understood James' earlier questions quite similar to what I would ask
for this example; and feel the are still not answered:
> "if said user had less than X MB RAM, they will definitely need a swap
> partition"? And what about guidelines for swap partition size in such a
> case: can such be stated as well? Like, say, "if this individual has
> only 32 MB RAM, he should have a 64 MB swap partition" or "if he has 64
> MB RAM he'll only need a 64 MB swap partition"?

<besides>IMNSO too many of the posts especially on this list here -
where I suppose are precisely quite a lot of "single-users" listening,
and quite some who did or want to change away from Winno$ with their
existing, "old" PCs - are geared towards conditions of illimited means
(e.g., permanent/broadband net connection, units with huge mem and dito
HDs); which might well be a misconception.</besides>

// Heimo Claasen // <hammer at revobild dot net> // Brussels 2002-12-14
The WebPlace of ReRead - and much to read  ==>  http://www.revobild.net

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 24+ messages in thread
* RE: RAM and swap partition
@ 2002-12-13  0:00 Heimo Claasen
  2002-12-13 22:31 ` Chuck Gelm
  0 siblings, 1 reply; 24+ messages in thread
From: Heimo Claasen @ 2002-12-13  0:00 UTC (permalink / raw)
  To: linux-newbie

It's still not really clear for my when and if, how much swap space is
needed.

There had been two opinions in this thread which clearly pointed to
none at all - surely qualified, one from own experience re
"workstations", the other (and that was the first time I heard about
this at all) that swap is (only?) needed when compiling and in order
to save a crash log.

The definition of "total (virtual) memory needed" for a/one programm
appears logical (and "natural"); but then, there should be some means
of measurement of precisely this, in order to do some reasonable -
and economic - decision on that workspace indeed needed.

Furthermore, it seems rational to approach this in function of the
actual use of (or installed) applications - i.e., to define, or even
to resize if necessary (when a memory hog is added), the swap partition
_after_ the otherwise complete installation of the "system".

// Heimo Claasen // <hammer at revobild dot net> // Brussels 2002-12-12
The WebPlace of ReRead - and much to read  ==>  http://www.revobild.net

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 24+ messages in thread
* RAM and swap partition
@ 2002-12-07  0:00 Heimo Claasen
  2002-12-08  0:24 ` james niland
  2002-12-08  0:35 ` dashielljt
  0 siblings, 2 replies; 24+ messages in thread
From: Heimo Claasen @ 2002-12-07  0:00 UTC (permalink / raw)
  To: linux-newbie

As I'm increasing the RAM installed to the threefold of what there is
now, I wonder if I have to change/resize the swap partition.

(At present the swap is a small bit larger, 364 MB, than memory installed.
I sometimes read advice that the swap partitions should be _twice_ the
installed RAM; but I wonder why: wouldn't this be in function of how
many processes, and especially X-windows, are in use a a same time ?
As the single main memory hog to run on this machine is just one, 1,
application in one, again: 1, window, it dowsn't seem evident to waste
over 2 GB of HD space ?)

If resizing is adviseable: What's the best procdure ?

As it is, with this (Mdk-)install, there is quite a large, almost
empty partition devised as /home directory which would be the evident
candidate to get cut and parted, and I would prefer to not touch at all
on the other existing ones.  So I'd like best to define an all new
"swap" and likewise new "/home" from that (emptied) /home space, and
to redefine the old swap space of the HD as just some other data (or for
the "users" /homes) storage.

// Heimo Claasen // <hammer at revobild dot net> // Brussels 2002-12-07
The WebPlace of ReRead - and much to read  ==>  http://www.revobild.net

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: RAM and swap partition
@ 2002-12-07  0:00 Heimo Claasen
  2002-12-08  2:28 ` whitnl73
  0 siblings, 1 reply; 24+ messages in thread
From: Heimo Claasen @ 2002-12-07  0:00 UTC (permalink / raw)
  To: linux-newbie

James - that's quite new to me:
> ... that when your system has a crash it is
> still capable of writing a core dump to the harddisk.

I understood it hitherto that it's needed for cases when a program needs
more mem than is free and available ?
Or asked the other way round - would any program which uses more RAM
than is available at a moment, be respeonsible care for "swapping" its
parts (or rather for instance, parts of its data) in/out by itself, and
to some own swap file ?

The second part of James' reply is precisely what I hoped for:
> (you) can make a new swap partition with eg fdisk and change
> the entry for swap in /etc/fstab.
Using an (emptied) partition to split off a part would be indeed much
less risky than a real resizeing of the swap _partition_; and much less
worksome, without GB-backups, <g>

-hc
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

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

end of thread, other threads:[~2002-12-16 21:33 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-09 18:22 RAM and swap partition james miller
2002-12-09 18:47 ` Ray Olszewski
2002-12-10  8:39   ` ichi
2002-12-09 20:59 ` Chuck Gelm
2002-12-09 20:59 ` Chuck Gelm
2002-12-10  8:15 ` ichi
  -- strict thread matches above, loose matches on Subject: below --
2002-12-16  0:00 Heimo Claasen
2002-12-16 21:33 ` Chuck Gelm
2002-12-15  0:00 Heimo Claasen
2002-12-15  4:07 ` Chuck Gelm
2002-12-13  0:00 Heimo Claasen
2002-12-13 22:31 ` Chuck Gelm
2002-12-07  0:00 Heimo Claasen
2002-12-08  0:24 ` james niland
2002-12-08 13:15   ` Rolf Edlund
2002-12-08 15:58     ` Ray Olszewski
2002-12-08 21:43       ` Chuck Gelm
2002-12-11 18:32         ` Rolf Edlund
2002-12-09  7:13       ` ichi
2002-12-08 21:39         ` whitnl73
2002-12-11 18:03       ` Rolf Edlund
2002-12-08  0:35 ` dashielljt
2002-12-07  0:00 Heimo Claasen
2002-12-08  2:28 ` whitnl73

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