public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* swap?
@ 2001-11-19  0:46 Roy Sigurd Karlsbakk
  2001-11-19  2:12 ` can max. cache size be selected? Ivanovich
  2001-11-19 13:42 ` swap? James A Sutherland
  0 siblings, 2 replies; 6+ messages in thread
From: Roy Sigurd Karlsbakk @ 2001-11-19  0:46 UTC (permalink / raw)
  To: linux-kernel

What about a tux-only system?

should I disable swap?

--
Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA

Computers are like air conditioners.
They stop working when you open Windows.


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

* can max. cache size be selected?
  2001-11-19  0:46 swap? Roy Sigurd Karlsbakk
@ 2001-11-19  2:12 ` Ivanovich
  2001-11-19  8:55   ` Eric W. Biederman
  2001-11-19 13:42 ` swap? James A Sutherland
  1 sibling, 1 reply; 6+ messages in thread
From: Ivanovich @ 2001-11-19  2:12 UTC (permalink / raw)
  To: linux-kernel

I ask this because lowering the max. cache size could solve the problem that 
some people have with too much memory going to swap and, in consequence, 
making some apps unresponsive for a time

If max. cache size could be selected people who don't use much disk or just 
need to work with a lot of apps at the same time (desktop?) could reduce it 
to get better response when switching to inactive tasks who could have went 
to swap to grow the cache...

am i wrong with my logic?
is this possible?
  

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

* Re: can max. cache size be selected?
  2001-11-19  2:12 ` can max. cache size be selected? Ivanovich
@ 2001-11-19  8:55   ` Eric W. Biederman
  0 siblings, 0 replies; 6+ messages in thread
From: Eric W. Biederman @ 2001-11-19  8:55 UTC (permalink / raw)
  To: Ivanovich; +Cc: linux-kernel

Ivanovich <ivanovich@menta.net> writes:

> I ask this because lowering the max. cache size could solve the problem that 
> some people have with too much memory going to swap and, in consequence, 
> making some apps unresponsive for a time
> 
> If max. cache size could be selected people who don't use much disk or just 
> need to work with a lot of apps at the same time (desktop?) could reduce it 
> to get better response when switching to inactive tasks who could have went 
> to swap to grow the cache...
> 
> am i wrong with my logic?

Linux is currently optimized for programs actually getting things done.  So
idle processes are penalized.  Getting fast responses from idle when the
system is under other kinds of load is an interesting problem.  A simple
limit on cache size really does not address the problem, and truly penalizes
cases when things are getting done.

The only simple solution I can think of attacking swap clustering to make it
more efficient.  In that case it may be possible to bring all data back from
swap in a single I/O transaction for a process.  Which should be quiet
efficient both when the processes is swapped out and when it is being
swapped in. 

> is this possible?

You have the source.

Eric

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

* Re: swap?
  2001-11-19  0:46 swap? Roy Sigurd Karlsbakk
  2001-11-19  2:12 ` can max. cache size be selected? Ivanovich
@ 2001-11-19 13:42 ` James A Sutherland
  2001-11-19 13:57   ` swap? Remco Post
  1 sibling, 1 reply; 6+ messages in thread
From: James A Sutherland @ 2001-11-19 13:42 UTC (permalink / raw)
  To: Roy Sigurd Karlsbakk, linux-kernel

On Monday 19 November 2001 12:46 am, Roy Sigurd Karlsbakk wrote:
> What about a tux-only system?
>
> should I disable swap?

No, probably not. Having some swapspace (or, to keep the .nl pedant happy, 
"pagespace") available will allow the kernel to migrate unused pages to disk, 
making more room available for caching of your WWW site's content. Being part 
of the kernel, Tux's code will all be locked in memory anyway; the rest of 
free RAM will be used for caching content.


James.

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

* Re: swap?
  2001-11-19 13:42 ` swap? James A Sutherland
@ 2001-11-19 13:57   ` Remco Post
  2001-11-19 14:22     ` swap? Roy Sigurd Karlsbakk
  0 siblings, 1 reply; 6+ messages in thread
From: Remco Post @ 2001-11-19 13:57 UTC (permalink / raw)
  To: James A Sutherland; +Cc: Roy Sigurd Karlsbakk, linux-kernel

> On Monday 19 November 2001 12:46 am, Roy Sigurd Karlsbakk wrote:
> > What about a tux-only system?
> >
> > should I disable swap?
> 
> No, probably not. Having some swapspace (or, to keep the .nl pedant happy, 
> "pagespace") available will allow the kernel to migrate unused pages to disk, 
> making more room available for caching of your WWW site's content. Being part 
> of the kernel, Tux's code will all be locked in memory anyway; the rest of 
> free RAM will be used for caching content.
> 
> 
> James.
> -
> 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/
> 

On a tux only system, you'll have very little data that is not on a 
filesystem. Since all other applications running (you'll wind up with at least 
20 or so processes like syslogd...) are very small, and those will use very 
little data-pages, you'll probably see no benefit from having a swappartition. 
Having enough RAM to be used as a buffer-cache seems more usefull. Unused 
code-pages of userland apps will be discarded anyway. Leaving you with more 
memory to be used as a buffer-cache.

-- 
Met vriendelijke groeten,

Remco Post

SARA - Stichting Academisch Rekencentrum Amsterdam
High Performance Computing  Tel. +31 20 592 8008    Fax. +31 20 668 3167

"I really didn't foresee the Internet. But then, neither did the computer
industry. Not that that tells us very much of course - the computer industry
didn't even foresee that the century was going to end." -- Douglas Adams



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

* Re: swap?
  2001-11-19 13:57   ` swap? Remco Post
@ 2001-11-19 14:22     ` Roy Sigurd Karlsbakk
  0 siblings, 0 replies; 6+ messages in thread
From: Roy Sigurd Karlsbakk @ 2001-11-19 14:22 UTC (permalink / raw)
  To: Remco Post; +Cc: James A Sutherland, linux-kernel

> > > What about a tux-only system?
> > > should I disable swap?
>
> On a tux only system, you'll have very little data that is not on a
> filesystem. Since all other applications running (you'll wind up with at least
> 20 or so processes like syslogd...) are very small, and those will use very
> little data-pages, you'll probably see no benefit from having a swappartition.
> Having enough RAM to be used as a buffer-cache seems more usefull. Unused
> code-pages of userland apps will be discarded anyway. Leaving you with more
> memory to be used as a buffer-cache.

What could be the overhead of using swap?
--
Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA

Computers are like air conditioners.
They stop working when you open Windows.



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

end of thread, other threads:[~2001-11-19 14:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-19  0:46 swap? Roy Sigurd Karlsbakk
2001-11-19  2:12 ` can max. cache size be selected? Ivanovich
2001-11-19  8:55   ` Eric W. Biederman
2001-11-19 13:42 ` swap? James A Sutherland
2001-11-19 13:57   ` swap? Remco Post
2001-11-19 14:22     ` swap? Roy Sigurd Karlsbakk

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