LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 03-08-2013, 04:10 AM   #1
sanjay888
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Rep: Reputation: Disabled
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?
 
Old 03-08-2013, 05:02 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
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
 
Old 03-08-2013, 06:33 AM   #3
sanjay888
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
ulimit option

which option ican use sir
ulimit -d 127000

or

ulimit -m 127000
 
Old 03-08-2013, 07:28 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
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.
 
Old 03-08-2013, 07:36 AM   #5
sanjay888
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
ram size doubt

thank you sivaaa
then i don't need to set hard limit?
 
  


Reply

Tags
linux +, linux command


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit the Printer Query Size Droa Linux Mint 0 02-16-2012 04:58 AM
mysql: trying to limit results seems to expand them -or- need help with a query BrianK Programming 1 04-01-2009 03:09 PM
3 GB RAM limit? Eric Elliott Linux - Hardware 8 01-28-2008 04:42 PM
is there a RAM limit for the kernel? goens Linux - Hardware 5 03-24-2006 03:43 AM
RAM limit mjsivy Linux - General 6 03-31-2001 09:36 PM


All times are GMT -5. The time now is 11:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration