reliability of linux-vm subsystem
Hi,
When i run following code many times.
System becomes useless till all of the instance of this programming are killed by vmm.
Till that time linux doesn't accept any command though it switches from one VT to another but its useless.
The above programme is run as normal user previleges. Theoretically load should increase but system should services other users too.
but this is not behaving in that way.
___________________________________________________________________main()
{
char *x[1000];
int count=1000,i=0;
for(i=0; i <count; i++)
x[i] = (char*)malloc(1024*1024*10); /*10MB each time*/}
_______________________________________________________________________
If i run above programm for 10 times , then system is useless for around 5-7minutes on PIII/128MB.
regards,
Anil
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
The Mon, Nov 13, 2000 at 05:29:48PM +0530, [email protected] wrote :
[...]
Quoted 3 lines
When i run following code many times.
System becomes useless till all of the instance of this programming are killed by vmm.
[malloc bomb]
Check some archives of the linux-kernel list for "overcommit".
Signature · 5 lines
Ueimor - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 3 lines · On Mon, Nov 13, 2000 at 05:29:48PM +0530, [email protected] wrote:
When i run following code many times.
System becomes useless till all of the instance of this programming are killed by vmm.
Good, so the OOM killer works.
Quoted 2 lines
Till that time linux doesn't accept any command though it switches from one VT to another but its useless.
VT swithing is done by the kernel itself, not by a process.
Quoted 3 lines
The above programme is run as normal user previleges. Theoretically load should increase but system should services other users too.
No. The system would *like* to service other processes, but it *can't* because it is trashing.
Quoted 9 lines
but this is not behaving in that way.
___________________________________________________________________main(){ char *x[1000]; int count=1000,i=0; for(i=0; i <count; i++) x[i] = (char*)malloc(1024*1024*10); /*10MB each time*/
Quoted 4 lines
}
_______________________________________________________________________
If i run above programm for 10 times , then system is useless for around 5-7minutes on PIII/128MB.
Sounds quite normal to me. If you don't enforce process limits, you allow a normal user to thrash the system.
Erik
Signature · 9 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [email protected] WWW: http://www-ict.its.tudelft.nl/~erik/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/