SWAP CRASHES LIUNX 2.2.6 = malloc() design problem ?

1999-04-27 Thread Benno Senoner
Hi, My system is a Redhat 5.2 running on linux 2.2.6 + raid0145-19990421. I tested if the system is stable while swapping heavily. I tested a regular swap area and a soft-RAID1 (2 disks) swaparea. So I wrote e little program wich does basically the following: allocate as much as possible

Re: SWAP CRASHES LIUNX 2.2.6 = malloc() design problem ?

1999-04-27 Thread Alvin Starr
On Tue, 27 Apr 1999, Benno Senoner wrote: Hi, My system is a Redhat 5.2 running on linux 2.2.6 + raid0145-19990421. I tested if the system is stable while swapping heavily. I tested a regular swap area and a soft-RAID1 (2 disks) swaparea. So I wrote e little program wich does

Re: SWAP CRASHES LIUNX 2.2.6 = malloc() design problem ?

1999-04-27 Thread Benno Senoner
Alvin Starr wrote: On Tue, 27 Apr 1999, Benno Senoner wrote: Hi, My system is a Redhat 5.2 running on linux 2.2.6 + raid0145-19990421. I tested if the system is stable while swapping heavily. I tested a regular swap area and a soft-RAID1 (2 disks) swaparea. So I wrote e

Re: SWAP CRASHES LIUNX 2.2.6 = malloc() design problem ?

1999-04-27 Thread Benno Senoner
David Guo wrote: Hi. If you read the document of the raid. You'll know swap on raid is not safe. And you don't have any reason to use swap on raid. Because kernel handles the swap on different disk will not be worse then raid. I think you can checkout the docs with raid. Yours David. Not

Re: SWAP CRASHES LIUNX 2.2.6 = malloc() design problem ?

1999-04-27 Thread Gianni Mariani
Benno Senoner wrote: ... 1) my frist BIG QUESTION is if there is a design flaw in malloc() or not: No, malloc() should return nil if the memory requested cannot be backed by real storage. However, some unicies are configured to perform just as you discovered because much of the memory

Re: SWAP CRASHES LIUNX 2.2.6 = malloc() design problem ?

1999-04-27 Thread unknown
I don't see the relevance to linux-raid either, but the 2.2.x kernel does have /proc/sys/vm/overcommit_memory which will enable the below behaviour. It's off by default though... --- tani hosokawa river styx internet On Tue, 27 Apr 1999, Gianni Mariani wrote: Benno Senoner wrote: ...

Re: SWAP CRASHES LIUNX 2.2.6 = malloc() design problem ?

1999-04-27 Thread Paul Jakma
On Tue, 27 Apr 1999, Benno Senoner wrote: Hi, My system is a Redhat 5.2 running on linux 2.2.6 + raid0145-19990421. 1) my frist BIG QUESTION is if there is a design flaw in malloc() or not: when I do (number of successfully allocated blocks)* 4MB then I get 2GB of

Re: SWAP CRASHES LIUNX 2.2.6 = malloc() design problem ?

1999-04-27 Thread Benno Senoner
[EMAIL PROTECTED] wrote: I don't see the relevance to linux-raid either, but the 2.2.x kernel does have /proc/sys/vm/overcommit_memory which will enable the below behaviour. It's off by default though... thanks, I will try this /proc setting, I am using a standard RH5.2 box with a 2.2.6