Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


Closed Thread
  Search this Thread
Old 02-22-2008, 09:20 AM   #1
Registered: Feb 2008
Posts: 32

Rep: Reputation: 15
Limiting RAMFS usage

I created a RAMFS of size 5 MB, and started filling data into that.

When it exceeds 5 MB there is no alert / error.

It is going up to the size of RAM available. So it makes the system to hang.

How to identify when the RAMFS got filled ?? I want to stop writing when the RAMFS got filled.
Old 02-23-2008, 06:47 PM   #2
LQ Guru
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
I was curious myself and surprised I have no documentation of ramfs anywhere that I can find on my own Linux system, so I tried google and the first hit was

which explains it very well, including the answer to your question and alternatives. I think the file
containing that explanation is a common Linux file (not something special to that website). I just don't happen to have a copy on my system.

Edit, now there is a copy of it on my system. The file is actually
and it landed in the directory
when I installed the package linux-doc-2.6.22

But for your purposes, I think all that file tells you is to use tmpfs instead. See tmpfs.txt.gz in the same directory.

Last edited by johnsfine; 02-23-2008 at 07:01 PM.
Old 02-25-2008, 03:16 AM   #3
Registered: Feb 2008
Posts: 32

Original Poster
Rep: Reputation: 15
Thumbs up thanks and tmpfs info

hi john,

A very great thanks for you.

I searched this for a long time, but unable to find.

With the documentation URL you had given i seen the solution, and experimented, and now am able to create SIZE limited tmpfs.

I gone through the another URL from the URL you gave


i came to know RAMFS will dynamically grow, TMPFS is fixed size.


Last edited by sathiyamoorthy; 02-25-2008 at 03:17 AM. Reason: wrongly typed TMPFS as RAMFS
Old 04-02-2009, 09:04 AM   #4
Registered: Feb 2008
Posts: 32

Original Poster
Rep: Reputation: 15

Finally i wrote out an article about the tmpfs & ramfs which is available [MODERATED]

Last edited by unSpawn; 04-03-2009 at 01:25 AM. Reason: //moderator.note: traffic driving link removed.
Old 04-03-2009, 01:28 AM   #5
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Sathiyamoorthy, please do not post in threads older than say 4 to 6 months. If you feel the information you provide is unique and therefore should be known, please create your own thread in the same forum and add a link to the original thread. As you might have noticed by now also most of your traffic-driving links have been removed. LQ is provided to you for free and you will not abuse it for advertising in any form, not even to drive traffic to your own web log.

Thread and case closed.

Closed Thread


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
Limiting I/O usage sanu107 Linux - Newbie 1 01-17-2008 01:04 AM
Limiting RAM usage in a perl script DanTaylor Programming 2 05-05-2006 02:37 PM
Limiting Snort usage logicalfuzz Linux - Software 2 02-11-2006 05:31 AM
Limiting a process CPU usage therandomthing Linux - Software 1 06-07-2005 09:00 PM
hourly usage and limiting gadekar Linux - Networking 0 08-06-2003 10:52 PM

All times are GMT -5. The time now is 09:05 PM.

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