From: war <war@starband.net>
To: Mark Hahn <hahn@physics.mcmaster.ca>, linux-kernel@vger.kernel.org
Subject: Re: Swap vs No Swap.
Date: Thu, 22 Nov 2001 11:34:29 -0500 [thread overview]
Message-ID: <3BFD2915.D640C3CB@starband.net> (raw)
In-Reply-To: <Pine.LNX.4.10.10111221006010.29736-100000@coffee.psychology.mcmaster.ca>
Unworkable?
How is it unworkable for my situation?
I have 1GB of memory, even when I launch every application I can, I still have
350MB left over!
Mark Hahn wrote:
> > You can say whatever you want.
>
> gee, thanks.
>
> > When my box starts swapping, the shit hits the fan, slows down dramatically.
>
> then your disks are misconfigured.
>
> > If you have no need for swap, you shouldn't have it, it simply slows the
> > system down big time.
>
> sure, that's obvious. it's also unworkable in general.
>
> >
> >
> > Mark Hahn wrote:
> >
> > > > How can having swap speed ANYTHING up?
> > >
> > > simple: under memory load, it's more efficient to scavenge
> > > idle pages so they can be used for some "hotter" purpose.
> > > there usually are *some* pages in any process which are
> > > only used at startup, or very rarely used. if there's no
> > > memory pressure, sure, leave them there. if there is some
> > > other use for the memory, even caching files, then it's more
> > > efficient to swap those pages (assuming they're dirty).
> > >
> > > swap is a sound way of making more efficient use of limited ram.
> > >
> > > > RAM = 1000MB/s.
> > > > DISK = 10MB/s
> > >
> > > well, modern disks are 40 MB/s, and a typical non-rambus PC
> > > has only around 600 MB/s dram bandwidth, depending on how you
> > > measure it, etc.
> > >
> > > > Ram is generally 1000x faster than a hard disk.
> > >
> > > no, more like 20x; it can be up to around 80x (1.6 GB/s pc800
> > > and a fairly pathetic 20 MB/s disk). the *latency* ratio can
> > > be much higher (10 ms vs 200 ns).
> > >
> > > > No swap = fastest possible solution.
> > >
> > > false in general. the only case where this is true is where
> > > you either have just the right amount of ram (unlikely, unless
> > > you can tune your apps rather carefully), or you have too much (your case).
> > >
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" 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.tux.org/lkml/
> >
>
> --
> operator may differ from spokesperson. hahn@coffee.mcmaster.ca
> http://java.mcmaster.ca/~hahn
next parent reply other threads:[~2001-11-22 16:35 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.10.10111221006010.29736-100000@coffee.psychology.mcmaster.ca>
2001-11-22 16:34 ` war [this message]
2001-11-26 20:18 ` Swap vs No Swap Kent Borg
2001-11-22 16:29 Elgar, Jeremy
-- strict thread matches above, loose matches on Subject: below --
2001-11-22 16:11 Elgar, Jeremy
2001-11-22 16:22 ` Ryan Cumming
2001-11-22 16:22 ` Stephan von Krawczynski
2001-11-22 1:53 war
2001-11-22 2:23 ` Joel Jaeggli
2001-11-22 2:31 ` war
2001-11-22 2:58 ` Mark Hahn
2001-11-22 4:09 ` listmail
2001-11-22 5:24 ` H. Peter Anvin
2001-11-22 5:30 ` war
2001-11-22 5:32 ` H. Peter Anvin
2001-11-22 9:50 ` Christian Bornträger
2001-11-22 8:50 ` Rik van Riel
2001-11-22 11:00 ` James A Sutherland
2001-11-22 16:00 ` war
2001-11-22 16:08 ` James A Sutherland
2001-11-22 16:57 ` Rik van Riel
2001-11-22 18:56 ` François Cami
2001-11-22 18:58 ` James A Sutherland
2001-11-22 19:17 ` François Cami
2001-11-22 19:36 ` G . Sumner Hayes
2001-11-22 20:37 ` James A Sutherland
2001-11-23 6:30 ` Charles Marslett
2001-11-23 9:13 ` James A Sutherland
2001-11-23 16:46 ` Charles Marslett
2001-11-22 16:25 ` war
2001-11-22 16:37 ` Ryan Cumming
2001-11-22 17:39 ` James A Sutherland
2001-11-22 17:56 ` war
[not found] ` <01112211150302.00690@argo>
2001-11-22 16:01 ` war
2001-11-22 16:12 ` James A Sutherland
2001-11-22 16:36 ` war
2001-11-22 16:33 ` Bjorn Wesen
2001-11-22 17:37 ` Thomas S. Iversen
2001-11-22 21:18 ` Mike Galbraith
2001-11-22 17:41 ` James A Sutherland
2001-11-22 17:56 ` war
2001-11-22 18:08 ` James A Sutherland
2001-11-23 22:05 ` Daniel Gryniewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3BFD2915.D640C3CB@starband.net \
--to=war@starband.net \
--cc=hahn@physics.mcmaster.ca \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox