LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RAM limit query in linux (https://www.linuxquestions.org/questions/linux-newbie-8/ram-limit-query-in-linux-4175453231/)

sanjay888 03-08-2013 03:10 AM

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?

shivaa 03-08-2013 04:02 AM

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
~$ man ulimit


sanjay888 03-08-2013 05:33 AM

ulimit option
 
which option ican use sir
ulimit -d 127000

or

ulimit -m 127000

shivaa 03-08-2013 06:28 AM

To check current ulimit options:
Code:

~$ ulimit -a
To set size:
Code:

~$ ulimit -Sv 127000
If you will check manual of ulimit, then you will find that -m option has no effect on Linux. So either use -s or -v option. -S stands for soft limit.

sanjay888 03-08-2013 06:36 AM

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.