RAM limit query in linux
hello,
I am working on friendly-arm Linux based application, in which only one program is running that is creating many processes and many files are appending with data. One of these processes is PPP. My friendly-arm Linux RAM size is 128MB. When this 128MB ram is filled then the process PPP is hanging so I want to set as - When ram memory exceeds 127MB then don't write data to files. How it can be done? Can one give useful information? |
Same question has already been asked here.
If problem hasn't solved, then you can continue with one thread. Anyway, just check for ulimit command. If it's there on your system, you can further read about it and use it. Code:
~$ which ulimit |
ulimit option
which option ican use sir
ulimit -d 127000 or ulimit -m 127000 |
To check current ulimit options:
Code:
~$ ulimit -a Code:
~$ ulimit -Sv 127000 |
ram size doubt
thank you sivaaa
then i don't need to set hard limit? |
All times are GMT -5. The time now is 06:43 AM. |