Re: 2.4 and 2GB swap partition limit

2001-05-03 Thread Andreas Dilger
Andi Kleen writes: > On Mon, Apr 30, 2001 at 12:07:44PM -0700, David S. Miller wrote: > But something must have been not working with it for mmaps/shlibs > (not executables); at least historically. > At least I remember that all hell broke lose when you tried to update > libc by cp'ing a new one

Re: 2.4 and 2GB swap partition limit

2001-05-03 Thread Ishikawa
J. A. Magallon wrote: >I'm not so sure it's only a 'rule of thumb'. Do not know the state of >paging in just released 2.4.4, but in previuos kernel, a page that was >paged-out, reserves its place in swap even if it is paged-in again, so >once you have paged-out all your ram at least once, you

Re: 2.4 and 2GB swap partition limit

2001-05-03 Thread Ishikawa
J. A. Magallon wrote: I'm not so sure it's only a 'rule of thumb'. Do not know the state of paging in just released 2.4.4, but in previuos kernel, a page that was paged-out, reserves its place in swap even if it is paged-in again, so once you have paged-out all your ram at least once, you can't

Re: 2.4 and 2GB swap partition limit

2001-05-03 Thread Andreas Dilger
Andi Kleen writes: On Mon, Apr 30, 2001 at 12:07:44PM -0700, David S. Miller wrote: But something must have been not working with it for mmaps/shlibs (not executables); at least historically. At least I remember that all hell broke lose when you tried to update libc by cp'ing a new one to

Re: 2.4 and 2GB swap partition limit

2001-05-02 Thread Stephen C. Tweedie
Hi, On Wed, May 02, 2001 at 01:49:16PM +0100, Hugh Dickins wrote: > On Wed, 2 May 2001, Stephen C. Tweedie wrote: > > > > So the aim is more complex. Basically, once we are short on VM, we > > want to eliminate redundant copies of swap data. That implies two > > possible actions, not one ---

Re: 2.4 and 2GB swap partition limit

2001-05-02 Thread Andi Kleen
On Mon, Apr 30, 2001 at 12:07:44PM -0700, David S. Miller wrote: > Even more effective is: > > mv /wherever/exeimage /usr/bin/exeimage > > The kernel keeps around the contents of the old file while > the executing process still runs. > > This is also basically how things like libc get

Re: 2.4 and 2GB swap partition limit

2001-05-02 Thread Hugh Dickins
On Wed, 2 May 2001, Stephen C. Tweedie wrote: > > So the aim is more complex. Basically, once we are short on VM, we > want to eliminate redundant copies of swap data. That implies two > possible actions, not one --- we can either remove the swap page for > data which is already in memory, or

Re: 2.4 and 2GB swap partition limit

2001-05-02 Thread Stephen C. Tweedie
Hi, On Wed, May 02, 2001 at 12:54:15PM +0200, Rogier Wolff wrote: > > first: Thanks for clearing this up for me. > > So, there are in fact some more "states" a swap-page can be in: > > -(0) free > -(1) allocated, not in mem. > -(2) on swap, valid copy of memory. >

Re: 2.4 and 2GB swap partition limit

2001-05-02 Thread Rogier Wolff
Stephen C. Tweedie wrote: > Hi, > > On Tue, May 01, 2001 at 06:14:54PM +0200, Rogier Wolff wrote: > > > Shouldn't the algorithm be: > > > > - If (current_access == write ) > > free (swap_page); > > else > > map (page, READONLY) > > > > and > > when a write access happens, we

Re: 2.4 and 2GB swap partition limit

2001-05-02 Thread Stephen C. Tweedie
Hi, On Tue, May 01, 2001 at 06:14:54PM +0200, Rogier Wolff wrote: > Shouldn't the algorithm be: > > - If (current_access == write ) > free (swap_page); > else > map (page, READONLY) > > and > when a write access happens, we fault again, and map free the > swap-page as it

Re: 2.4 and 2GB swap partition limit

2001-05-02 Thread Stephen C. Tweedie
Hi, On Tue, May 01, 2001 at 06:14:54PM +0200, Rogier Wolff wrote: Shouldn't the algorithm be: - If (current_access == write ) free (swap_page); else map (page, READONLY) and when a write access happens, we fault again, and map free the swap-page as it is now

Re: 2.4 and 2GB swap partition limit

2001-05-02 Thread Rogier Wolff
Stephen C. Tweedie wrote: Hi, On Tue, May 01, 2001 at 06:14:54PM +0200, Rogier Wolff wrote: Shouldn't the algorithm be: - If (current_access == write ) free (swap_page); else map (page, READONLY) and when a write access happens, we fault again, and map free

Re: 2.4 and 2GB swap partition limit

2001-05-02 Thread Stephen C. Tweedie
Hi, On Wed, May 02, 2001 at 12:54:15PM +0200, Rogier Wolff wrote: first: Thanks for clearing this up for me. So, there are in fact some more states a swap-page can be in: -(0) free -(1) allocated, not in mem. -(2) on swap, valid copy of memory. -(3) on

Re: 2.4 and 2GB swap partition limit

2001-05-02 Thread Hugh Dickins
On Wed, 2 May 2001, Stephen C. Tweedie wrote: So the aim is more complex. Basically, once we are short on VM, we want to eliminate redundant copies of swap data. That implies two possible actions, not one --- we can either remove the swap page for data which is already in memory, or we

Re: 2.4 and 2GB swap partition limit

2001-05-02 Thread Stephen C. Tweedie
Hi, On Wed, May 02, 2001 at 01:49:16PM +0100, Hugh Dickins wrote: On Wed, 2 May 2001, Stephen C. Tweedie wrote: So the aim is more complex. Basically, once we are short on VM, we want to eliminate redundant copies of swap data. That implies two possible actions, not one --- we can

Re: 2.4 and 2GB swap partition limit

2001-05-02 Thread Andi Kleen
On Mon, Apr 30, 2001 at 12:07:44PM -0700, David S. Miller wrote: Even more effective is: mv /wherever/exeimage /usr/bin/exeimage The kernel keeps around the contents of the old file while the executing process still runs. This is also basically how things like libc get installed. A

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Rik van Riel
On Wed, 2 May 2001, Roger Larsson wrote: > On Wednesday 02 May 2001 02:43, Rik van Riel wrote: > > On Tue, 1 May 2001, David S. Miller wrote: > > > Rik van Riel writes: > > > > Then we will be scanning through memory looking for something to > > > > swap out (otherwise we'd not be in need of

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Roger Larsson
On Wednesday 02 May 2001 02:43, Rik van Riel wrote: > On Tue, 1 May 2001, David S. Miller wrote: > > Rik van Riel writes: > > > Then we will be scanning through memory looking for something to > > > swap out (otherwise we'd not be in need of swap space, right?). > > > At this point we can

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Rik van Riel
On Tue, 1 May 2001, David S. Miller wrote: > Rik van Riel writes: > > Then we will be scanning through memory looking for something to > > swap out (otherwise we'd not be in need of swap space, right?). > > At this point we can simply free up swap entries while scanning > > through memory

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread David S. Miller
Rik van Riel writes: > Then we will be scanning through memory looking for something to > swap out (otherwise we'd not be in need of swap space, right?). > At this point we can simply free up swap entries while scanning > through memory looking for stuff to swap out. Sounds a lot like my

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Rik van Riel
On Tue, 1 May 2001, Stephen C. Tweedie wrote: > The right fix is to reclaim such pages only when we need to. To > disable swap caching when we still have enough swap free would hurt > users who have the spare swap to cope with it. That's easy enough. When we are: 1. almost out of swap and 2.

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Rik van Riel
On 1 May 2001, Christoph Rohland wrote: > On Mon, 30 Apr 2001, Alan Cox wrote: > >> paging in just released 2.4.4, but in previuos kernel, a page that > >> was paged-out, reserves its place in swap even if it is paged-in > >> again, so once you have paged-out all your ram at least once, you > >>

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Rogier Wolff
Stephen C. Tweedie wrote: > Hi, > > On Mon, Apr 30, 2001 at 07:12:12PM +0100, Alan Cox wrote: > > > paging in just released 2.4.4, but in previuos kernel, a page that was > > > paged-out, reserves its place in swap even if it is paged-in again, so > > > once you have paged-out all your ram at

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Stephen C. Tweedie
Hi, On Mon, Apr 30, 2001 at 07:12:12PM +0100, Alan Cox wrote: > > paging in just released 2.4.4, but in previuos kernel, a page that was > > paged-out, reserves its place in swap even if it is paged-in again, so > > once you have paged-out all your ram at least once, you can't get any > > more

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Christoph Rohland
Hi Alan, On Mon, 30 Apr 2001, Alan Cox wrote: >> paging in just released 2.4.4, but in previuos kernel, a page that >> was paged-out, reserves its place in swap even if it is paged-in >> again, so once you have paged-out all your ram at least once, you >> can't get any more memory, even if swap

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Christoph Rohland
Hi Alan, On Mon, 30 Apr 2001, Alan Cox wrote: paging in just released 2.4.4, but in previuos kernel, a page that was paged-out, reserves its place in swap even if it is paged-in again, so once you have paged-out all your ram at least once, you can't get any more memory, even if swap is

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Stephen C. Tweedie
Hi, On Mon, Apr 30, 2001 at 07:12:12PM +0100, Alan Cox wrote: paging in just released 2.4.4, but in previuos kernel, a page that was paged-out, reserves its place in swap even if it is paged-in again, so once you have paged-out all your ram at least once, you can't get any more memory,

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Rogier Wolff
Stephen C. Tweedie wrote: Hi, On Mon, Apr 30, 2001 at 07:12:12PM +0100, Alan Cox wrote: paging in just released 2.4.4, but in previuos kernel, a page that was paged-out, reserves its place in swap even if it is paged-in again, so once you have paged-out all your ram at least once,

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Rik van Riel
On 1 May 2001, Christoph Rohland wrote: On Mon, 30 Apr 2001, Alan Cox wrote: paging in just released 2.4.4, but in previuos kernel, a page that was paged-out, reserves its place in swap even if it is paged-in again, so once you have paged-out all your ram at least once, you can't get any

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Rik van Riel
On Tue, 1 May 2001, Stephen C. Tweedie wrote: The right fix is to reclaim such pages only when we need to. To disable swap caching when we still have enough swap free would hurt users who have the spare swap to cope with it. That's easy enough. When we are: 1. almost out of swap and 2. need

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Rik van Riel
On Tue, 1 May 2001, David S. Miller wrote: Rik van Riel writes: Then we will be scanning through memory looking for something to swap out (otherwise we'd not be in need of swap space, right?). At this point we can simply free up swap entries while scanning through memory looking for

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Rik van Riel
On Wed, 2 May 2001, Roger Larsson wrote: On Wednesday 02 May 2001 02:43, Rik van Riel wrote: On Tue, 1 May 2001, David S. Miller wrote: Rik van Riel writes: Then we will be scanning through memory looking for something to swap out (otherwise we'd not be in need of swap space,

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread David S. Miller
Rik van Riel writes: Then we will be scanning through memory looking for something to swap out (otherwise we'd not be in need of swap space, right?). At this point we can simply free up swap entries while scanning through memory looking for stuff to swap out. Sounds a lot like my patch

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Roger Larsson
On Wednesday 02 May 2001 02:43, Rik van Riel wrote: On Tue, 1 May 2001, David S. Miller wrote: Rik van Riel writes: Then we will be scanning through memory looking for something to swap out (otherwise we'd not be in need of swap space, right?). At this point we can simply free up

Re: 2.4 and 2GB swap partition limit

2001-04-30 Thread Andreas Ferber
Hi, On Mon, Apr 30, 2001 at 03:14:25PM -0400, Richard B. Johnson wrote: > > mv /wherever/exeimage /usr/bin/exeimage [...] > > This is also basically how things like libc get installed. > > A single mv is not only preserves currently referenced contents, > > it is atomic. One restriction:

RE: 2.4 and 2GB swap partition limit

2001-04-30 Thread Richard B. Johnson
On Mon, 30 Apr 2001, David S. Miller wrote: > > Richard B. Johnson writes: > > On Mon, 30 Apr 2001, Torrey Hoffman wrote: > > > In general, is there a safe way to replace executable files for > > > programs that might be running while their on-disk images are > > > replaced? > > > > Yes.

RE: 2.4 and 2GB swap partition limit

2001-04-30 Thread David S. Miller
Richard B. Johnson writes: > On Mon, 30 Apr 2001, Torrey Hoffman wrote: > > In general, is there a safe way to replace executable files for > > programs that might be running while their on-disk images are > > replaced? > > Yes. Perfectly safe: > > mv /usr/bin/exeimage

RE: 2.4 and 2GB swap partition limit

2001-04-30 Thread Richard B. Johnson
On Mon, 30 Apr 2001, Torrey Hoffman wrote: > > In general, is there a safe way to replace executable files for > programs that might be running while their on-disk images are > replaced? > Yes. Perfectly safe: mv /usr/bin/exeimage /usr/bin/exeimage.sav cp /wherever/exeimage /usr/bin/exeimage

RE: 2.4 and 2GB swap partition limit

2001-04-30 Thread Torrey Hoffman
Kenneth Johansson wrote: > Jonathan Lundell wrote: > > > > (Does Linux swap out text, by the way, he asks ignorantly?) > > .text is just droped and read back from the actuall file it's > not put into the swap Is this always true, even for init? Can init be swapped out? In general, is

Re: 2.4 and 2GB swap partition limit

2001-04-30 Thread Alan Cox
> > The swap I have is 2 partitions, one on each drive both with a priority of > > 0. Personally, I like the way it's done on my box. > > So you've spent almost $200 for RAM, and refuse to spend $4 for 1Gb of > swap space. Fine with me. Stupid argument. Very stupid argument. Take a 16Gb

Re: 2.4 and 2GB swap partition limit

2001-04-30 Thread Alan Cox
> paging in just released 2.4.4, but in previuos kernel, a page that was > paged-out, reserves its place in swap even if it is paged-in again, so > once you have paged-out all your ram at least once, you can't get any > more memory, even if swap is 'empty'. This is a bug in the 2.4 VM, nothing

Re: 2.4 and 2GB swap partition limit

2001-04-30 Thread Alan Cox
paging in just released 2.4.4, but in previuos kernel, a page that was paged-out, reserves its place in swap even if it is paged-in again, so once you have paged-out all your ram at least once, you can't get any more memory, even if swap is 'empty'. This is a bug in the 2.4 VM, nothing more

Re: 2.4 and 2GB swap partition limit

2001-04-30 Thread Alan Cox
The swap I have is 2 partitions, one on each drive both with a priority of 0. Personally, I like the way it's done on my box. So you've spent almost $200 for RAM, and refuse to spend $4 for 1Gb of swap space. Fine with me. Stupid argument. Very stupid argument. Take a 16Gb server. You

RE: 2.4 and 2GB swap partition limit

2001-04-30 Thread Torrey Hoffman
Kenneth Johansson wrote: Jonathan Lundell wrote: (Does Linux swap out text, by the way, he asks ignorantly?) .text is just droped and read back from the actuall file it's not put into the swap Is this always true, even for init? Can init be swapped out? In general, is there a

RE: 2.4 and 2GB swap partition limit

2001-04-30 Thread Richard B. Johnson
On Mon, 30 Apr 2001, Torrey Hoffman wrote: In general, is there a safe way to replace executable files for programs that might be running while their on-disk images are replaced? Yes. Perfectly safe: mv /usr/bin/exeimage /usr/bin/exeimage.sav cp /wherever/exeimage /usr/bin/exeimage

RE: 2.4 and 2GB swap partition limit

2001-04-30 Thread David S. Miller
Richard B. Johnson writes: On Mon, 30 Apr 2001, Torrey Hoffman wrote: In general, is there a safe way to replace executable files for programs that might be running while their on-disk images are replaced? Yes. Perfectly safe: mv /usr/bin/exeimage /usr/bin/exeimage.sav cp

RE: 2.4 and 2GB swap partition limit

2001-04-30 Thread Richard B. Johnson
On Mon, 30 Apr 2001, David S. Miller wrote: Richard B. Johnson writes: On Mon, 30 Apr 2001, Torrey Hoffman wrote: In general, is there a safe way to replace executable files for programs that might be running while their on-disk images are replaced? Yes. Perfectly safe:

Re: 2.4 and 2GB swap partition limit

2001-04-30 Thread Andreas Ferber
Hi, On Mon, Apr 30, 2001 at 03:14:25PM -0400, Richard B. Johnson wrote: mv /wherever/exeimage /usr/bin/exeimage [...] This is also basically how things like libc get installed. A single mv is not only preserves currently referenced contents, it is atomic. One restriction: /wherever and

Re: 2.4 and 2GB swap partition limit

2001-04-29 Thread Ingo Oeser
On Fri, Apr 27, 2001 at 11:40:40PM +0100, Hugh Dickins wrote: > > > An interesting option (though with less-than-stellar performance > > > characteristics) would be a dynamically expanding swapfile. If you're > > > going to be hit with swap penalties, it may be useful to not have to > > >

Re: 2.4 and 2GB swap partition limit

2001-04-29 Thread Kenneth Johansson
Jonathan Lundell wrote: > > (Does Linux swap out text, by the way, he asks ignorantly?) .text is just droped and read back from the actuall file it's not put into the swap - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED]

Re: 2.4 and 2GB swap partition limit

2001-04-29 Thread Kenneth Johansson
Jonathan Lundell wrote: (Does Linux swap out text, by the way, he asks ignorantly?) .text is just droped and read back from the actuall file it's not put into the swap - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: 2.4 and 2GB swap partition limit

2001-04-29 Thread Ingo Oeser
On Fri, Apr 27, 2001 at 11:40:40PM +0100, Hugh Dickins wrote: An interesting option (though with less-than-stellar performance characteristics) would be a dynamically expanding swapfile. If you're going to be hit with swap penalties, it may be useful to not have to pre-reserve

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Jonathan Lundell
At 2:04 PM -0400 2001-04-28, Albert D. Cahalan wrote: >It is a disaster waiting to happen. Instead of having the offending >process get killed, your machine could suffer extreme thrashing. > >Have enough swap for idle processes and no more. Let's altogether now say "working set". (Does Linux

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Rogier Wolff
David Lang wrote: > at the low end useing a bit of disk for swap doesn't hurt, I ran into a > case a couple years ago on AIX systems. we buy them with 2G ram so that we > don't need to swap, but discovered (the hard way) that we also needed to > allocate 4G of disk space for those boxes

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Rogier Wolff
Albert D. Cahalan wrote: > So that is a factor of 50 in price. It's what, a factor of 100 > in access time? Actually it's only about 10. > > That disk space is just sitting there. Never to be used. I spent $400 > > on the RAM, and I'm now reserving about $8 worth of disk space for > >

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread David Lang
<[EMAIL PROTECTED]>, > Xavier Bestel <[EMAIL PROTECTED]>, > Goswin Brederlow <[EMAIL PROTECTED]>, > William T Wilson <[EMAIL PROTECTED]>, [EMAIL PROTECTED], > [EMAIL PROTECTED] > Subject: Re: 2.4 and 2GB swap partition limit > >

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Albert D. Cahalan
Rogier Wolff writes: > Wakko Warner wrote: >>> So you've spent almost $200 for RAM, and refuse to spend >>> $4 for 1Gb of swap space. Fine with me. So that is a factor of 50 in price. It's what, a factor of 100 in access time? > That disk space is just sitting there. Never to be used. I

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread J . A . Magallon
On 04.28 Rogier Wolff wrote: > > I've ALWAYS said that it's a rule-of-thumb. This means that if you > have a good argument to do it differently, you should surely do so! > I'm not so sure it's only a 'rule of thumb'. Do not know the state of paging in just released 2.4.4, but in previuos

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Rogier Wolff
Wakko Warner wrote: > > So you've spent almost $200 for RAM, and refuse to spend $4 for 1Gb of > > swap space. Fine with me. > I put this much ram into the system to keep from having swap. I > still say swap=2x ram is a stupid idea. I fail to see the logic in > that. Disk is much much

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Wakko Warner
> So you've spent almost $200 for RAM, and refuse to spend $4 for 1Gb of > swap space. Fine with me. I put this much ram into the system to keep from having swap. I still say swap=2x ram is a stupid idea. I fail to see the logic in that. Disk is much much slower than ram and if you're

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Rogier Wolff
Wakko Warner wrote: > > I've always been trying to convice people that 2x RAM remains a good > > rule-of-thumb. > > IMO this is pointless > > total used free sharedbuffers cached > Mem:517456 505332 12124 111016 97752 236884 >

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Rogier Wolff
LA Walsh wrote: > Rogier Wolff wrote: > > > > > On Linux any swap adds to the memory pool, so 1xRAM would be > > > > equivalent to 2xRAM with the old old OS's. > > > > > > no more true AFAIK > > > > I've always been trying to convice people that 2x RAM remains a good > > rule-of-thumb. > > ---

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Rogier Wolff
LA Walsh wrote: Rogier Wolff wrote: On Linux any swap adds to the memory pool, so 1xRAM would be equivalent to 2xRAM with the old old OS's. no more true AFAIK I've always been trying to convice people that 2x RAM remains a good rule-of-thumb. --- Ug. I like to view

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Wakko Warner
So you've spent almost $200 for RAM, and refuse to spend $4 for 1Gb of swap space. Fine with me. I put this much ram into the system to keep from having swap. I still say swap=2x ram is a stupid idea. I fail to see the logic in that. Disk is much much slower than ram and if you're writing

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread J . A . Magallon
On 04.28 Rogier Wolff wrote: I've ALWAYS said that it's a rule-of-thumb. This means that if you have a good argument to do it differently, you should surely do so! I'm not so sure it's only a 'rule of thumb'. Do not know the state of paging in just released 2.4.4, but in previuos kernel,

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Albert D. Cahalan
Rogier Wolff writes: Wakko Warner wrote: So you've spent almost $200 for RAM, and refuse to spend $4 for 1Gb of swap space. Fine with me. So that is a factor of 50 in price. It's what, a factor of 100 in access time? That disk space is just sitting there. Never to be used. I spent

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread David Lang
], Xavier Bestel [EMAIL PROTECTED], Goswin Brederlow [EMAIL PROTECTED], William T Wilson [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: 2.4 and 2GB swap partition limit Wakko Warner wrote: So you've spent almost $200 for RAM, and refuse to spend $4 for 1Gb

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Rogier Wolff
David Lang wrote: at the low end useing a bit of disk for swap doesn't hurt, I ran into a case a couple years ago on AIX systems. we buy them with 2G ram so that we don't need to swap, but discovered (the hard way) that we also needed to allocate 4G of disk space for those boxes (allocating

Re: 2.4 and 2GB swap partition limit

2001-04-28 Thread Jonathan Lundell
At 2:04 PM -0400 2001-04-28, Albert D. Cahalan wrote: It is a disaster waiting to happen. Instead of having the offending process get killed, your machine could suffer extreme thrashing. Have enough swap for idle processes and no more. Let's altogether now say working set. (Does Linux swap out

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread LA Walsh
Rik van Riel wrote: > On Fri, 27 Apr 2001, LA Walsh wrote: > > > An interesting option (though with less-than-stellar performance > > characteristics) would be a dynamically expanding swapfile. If you're > > going to be hit with swap penalties, it may be useful to not have to > >

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Hugh Dickins
On Fri, 27 Apr 2001, Rik van Riel wrote: > On Fri, 27 Apr 2001, LA Walsh wrote: > > > An interesting option (though with less-than-stellar performance > > characteristics) would be a dynamically expanding swapfile. If you're > > going to be hit with swap penalties, it may be useful to not

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Rik van Riel
On Fri, 27 Apr 2001, Hugh Dickins wrote: > On Fri, 27 Apr 2001, Rik van Riel wrote: > > On Fri, 27 Apr 2001, LA Walsh wrote: > > > > > An interesting option (though with less-than-stellar performance > > > characteristics) would be a dynamically expanding swapfile. If you're > > > going to

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Wakko Warner
> I've always been trying to convice people that 2x RAM remains a good > rule-of-thumb. IMO this is pointless total used free sharedbuffers cached Mem:517456 505332 12124 111016 97752 236884 -/+ buffers/cache: 170696

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Thomas Dodd
Rik van Riel wrote: > > On Fri, 27 Apr 2001, LA Walsh wrote: > > > An interesting option (though with less-than-stellar performance > > characteristics) would be a dynamically expanding swapfile. If you're > > going to be hit with swap penalties, it may be useful to not have to > >

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Rik van Riel
On Fri, 27 Apr 2001, LA Walsh wrote: > An interesting option (though with less-than-stellar performance > characteristics) would be a dynamically expanding swapfile. If you're > going to be hit with swap penalties, it may be useful to not have to > pre-reserve something you only hit once in

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread LA Walsh
Rogier Wolff wrote: > > > On Linux any swap adds to the memory pool, so 1xRAM would be > > > equivalent to 2xRAM with the old old OS's. > > > > no more true AFAIK > > I've always been trying to convice people that 2x RAM remains a good > rule-of-thumb. --- Ug. I like to view swap as "low

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Rogier Wolff
Xavier Bestel wrote: [Charset ISO-8859-1 unsupported, filtering to ASCII...] > Le 08 Mar 2001 14:05:25 +0100, Goswin Brederlow a _crit : > > > I believe the 2xRAM rule comes from the OS's where ram was only buffer > > for the swap. So with 1xRAM you had a running system with 1xRAM > > memory, so

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Xavier Bestel
Le 08 Mar 2001 14:05:25 +0100, Goswin Brederlow a écrit : > I believe the 2xRAM rule comes from the OS's where ram was only buffer > for the swap. So with 1xRAM you had a running system with 1xRAM > memory, so nothing is gained by that much swap. I think kernels 2.4.x came back to this

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Goswin Brederlow
> " " == Rogier Wolff <[EMAIL PROTECTED]> writes: > William T Wilson wrote: >> On Fri, 2 Mar 2001 [EMAIL PROTECTED] wrote: >> >> > Linus has spoken, and 2.4.x now requires swap = 2x RAM. >> >> I think I missed this. What possible value does this have? >> (Not

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Goswin Brederlow
== Rogier Wolff [EMAIL PROTECTED] writes: William T Wilson wrote: On Fri, 2 Mar 2001 [EMAIL PROTECTED] wrote: Linus has spoken, and 2.4.x now requires swap = 2x RAM. I think I missed this. What possible value does this have? (Not even Sun, the original

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Xavier Bestel
Le 08 Mar 2001 14:05:25 +0100, Goswin Brederlow a écrit : I believe the 2xRAM rule comes from the OS's where ram was only buffer for the swap. So with 1xRAM you had a running system with 1xRAM memory, so nothing is gained by that much swap. I think kernels 2.4.x came back to this behavior.

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Rogier Wolff
Xavier Bestel wrote: [Charset ISO-8859-1 unsupported, filtering to ASCII...] Le 08 Mar 2001 14:05:25 +0100, Goswin Brederlow a _crit : I believe the 2xRAM rule comes from the OS's where ram was only buffer for the swap. So with 1xRAM you had a running system with 1xRAM memory, so nothing

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread LA Walsh
Rogier Wolff wrote: On Linux any swap adds to the memory pool, so 1xRAM would be equivalent to 2xRAM with the old old OS's. no more true AFAIK I've always been trying to convice people that 2x RAM remains a good rule-of-thumb. --- Ug. I like to view swap as low grade memory --

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Rik van Riel
On Fri, 27 Apr 2001, LA Walsh wrote: An interesting option (though with less-than-stellar performance characteristics) would be a dynamically expanding swapfile. If you're going to be hit with swap penalties, it may be useful to not have to pre-reserve something you only hit once in a

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Thomas Dodd
Rik van Riel wrote: On Fri, 27 Apr 2001, LA Walsh wrote: An interesting option (though with less-than-stellar performance characteristics) would be a dynamically expanding swapfile. If you're going to be hit with swap penalties, it may be useful to not have to pre-reserve

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread Wakko Warner
I've always been trying to convice people that 2x RAM remains a good rule-of-thumb. IMO this is pointless total used free sharedbuffers cached Mem:517456 505332 12124 111016 97752 236884 -/+ buffers/cache: 170696

Re: 2.4 and 2GB swap partition limit

2001-04-27 Thread LA Walsh
Rik van Riel wrote: On Fri, 27 Apr 2001, LA Walsh wrote: An interesting option (though with less-than-stellar performance characteristics) would be a dynamically expanding swapfile. If you're going to be hit with swap penalties, it may be useful to not have to pre-reserve

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Andries . Brouwer
>> For 2.5 we could perhaps think about a new swapfile layout > The format seems to be just fine. No, the present definition is terrible. Read the mkswap source. A forest of #ifdefs, and still sometimes user assistance is required because mkswap cannot always figure out what the "pagesize" is.

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Rik van Riel
On 5 Mar 2001, Christoph Rohland wrote: > BTW often these big servers run databases and application servers > which have most of their memory in shared memory. Shared memory does > free the swap entries on swapin. (I thought about changing that but as > long as we have no garbage collection for

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Rik van Riel
On 5 Mar 2001, Christoph Rohland wrote: > > We've also seen (anecdotal evidence here) cases where a kernel > > panics, which we believe may have to do with having 0 < swap < 2x > > RAM. We're investigating further. > > That would be a kernel bug which should be fixed. The kernel should >

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Matti Aarnio
On Mon, Mar 05, 2001 at 09:58:00AM +0100, Christoph Rohland wrote: > Hi Matt, > > On Sun, 4 Mar 2001, Matt Domsch wrote: > > My concern is that if there continues to be a 2GB swap > > partition/file size limitation, and you can have (as currently > > #defined) 8 swap partitions, you're limited

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Christoph Hellwig
Hi Matt, In article <[EMAIL PROTECTED]> you wrote: > My concern is that if there continues to be a 2GB swap partition/file size > limitation, and you can have (as currently #defined) 8 swap partitions, > you're limited to 16GB swap, which then follows a max of 8GB RAM. We'd like > to sell

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Christoph Rohland
Hi Matt, On Sun, 4 Mar 2001, Matt Domsch wrote: > My concern is that if there continues to be a 2GB swap > partition/file size limitation, and you can have (as currently > #defined) 8 swap partitions, you're limited to 16GB swap, which then > follows a max of 8GB RAM. We'd like to sell servers

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Christoph Rohland
Hi Matt, On Sun, 4 Mar 2001, Matt Domsch wrote: My concern is that if there continues to be a 2GB swap partition/file size limitation, and you can have (as currently #defined) 8 swap partitions, you're limited to 16GB swap, which then follows a max of 8GB RAM. We'd like to sell servers with

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Christoph Hellwig
Hi Matt, In article [EMAIL PROTECTED] you wrote: My concern is that if there continues to be a 2GB swap partition/file size limitation, and you can have (as currently #defined) 8 swap partitions, you're limited to 16GB swap, which then follows a max of 8GB RAM. We'd like to sell servers

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Matti Aarnio
On Mon, Mar 05, 2001 at 09:58:00AM +0100, Christoph Rohland wrote: Hi Matt, On Sun, 4 Mar 2001, Matt Domsch wrote: My concern is that if there continues to be a 2GB swap partition/file size limitation, and you can have (as currently #defined) 8 swap partitions, you're limited to 16GB

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Rik van Riel
On 5 Mar 2001, Christoph Rohland wrote: We've also seen (anecdotal evidence here) cases where a kernel panics, which we believe may have to do with having 0 swap 2x RAM. We're investigating further. That would be a kernel bug which should be fixed. The kernel should handle oom/oos.

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Rik van Riel
On 5 Mar 2001, Christoph Rohland wrote: BTW often these big servers run databases and application servers which have most of their memory in shared memory. Shared memory does free the swap entries on swapin. (I thought about changing that but as long as we have no garbage collection for idle

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Andries . Brouwer
For 2.5 we could perhaps think about a new swapfile layout The format seems to be just fine. No, the present definition is terrible. Read the mkswap source. A forest of #ifdefs, and still sometimes user assistance is required because mkswap cannot always figure out what the "pagesize" is.

RE: 2.4 and 2GB swap partition limit

2001-03-04 Thread Matt_Domsch
> > > Linus has spoken, and 2.4.x now requires swap = 2x RAM. > > > > I think I missed this. What possible value does this have? A good write-up of the discussion can be found at: http://kt.zork.net/kernel-traffic/kt20010126_104.html#2 My concern is that if there continues to be a 2GB swap

  1   2   >