If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
From - Mon Dec 11 07:14:32 2000 Path: news.randori.com!newsfeeder.randori.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!npeer.kpnqwest.net!nmaster.kpnqwest.net!blackbush.xlink.net!isar.de!wuzel.m.isar.de!not-for-mail From: Peter Pointner <pn01@wuzel.de> Newsgroups: comp.os.linux.development.system Subject: Re: ramdisk: how much mem do they use? Date: 9 Dec 2000 19:13:46 +0100 Organization: none Lines: 23 Message-ID: <90tsoq$1nt$1@wuzel.m.isar.de> References: <90ojct$otf$1@nnrp1.deja.com> NNTP-Posting-Host: localhost X-Trace: wuzel.m.isar.de 976385626 1790 127.0.0.1 (9 Dec 2000 18:13:46 GMT) X-Complaints-To: news@wuzel.m.isar.de NNTP-Posting-Date: 9 Dec 2000 18:13:46 GMT User-Agent: tin/pre-1.4-19990805 ("Preacher Man") (UNIX) (Linux/2.2.13 (i586)) Xref: news.randori.com comp.os.linux.development.system:57067 X-Mozilla-Status: 8011 X-Mozilla-Status2: 00000000 Jerome Corre <jerome_corre@my-deja.com> wrote: > hi > I have 32Mb of ram on my linuxbox, I sometime use ramdisk (/dev/ram0 or > /dev/ram1) to store small filesystem, prepare a bootdisk or when my > system boot usimg initrd. > I would like to know if it is possible to know how much memory the > ramdisk are using. I suppose that they don't all use 4Mb as there are 16 > ramdisk i can use and I only have 32 Mb of ram. How can I found out how > much memory they use? and if I don't need what is left on one of them > after i unmount it how can I free the memory a ramdisk use?
The ramdisks use ram only as needed. Initially your 16 ramdisks use no ram, or almost no (there are probably some data structrures in the kernel. If you use them, you normally create a file system on them. so if you create a 1 MByte ext2 file system on /dev/ram0, it uses 1 MByte of ram. AFAIK the 4 MBytes are only a (configurable) upper limit. If you want to free the memory, you can do that with the tool freeramdisk, which seems to do some ioctl on the ramdisk device. Peter
/Bofcusm/786.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar