SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Short of using a ramdisk or writting C code, is there a way for me to put a 30 MB file into memory. I want to run a grep search on a 30 MB file every 15 minutes or so. It would be way more efficient if I could just manually chuck it into memory and run grep on it there and then just leave it there until I want to grep it again. Is there some directory, /sys, or /dev think I could use to accomplish this?
Yeah you can do it in windows with a ramdisk but you have to pay for the ramdisk software. Then reboot and tell it the size and then you lose that memory permanetly until you reboot, which sucks.
With the tmpfs, you can do it on the fly and then remove it and continue as if nothing had happened.
Doesn't tmpfs my ramdisk obsolete. Now I'm thinking why does pat use an initrd image and then mount into with a ramdisk? Because the memory allocated to the ramdisk can never be gottin back. With tmpfs it can grow and shrink or just disappear depending on you.
Wow, tmpfs is so cool. I was thinking maybe I can mount my /tmp directory and a few others that have a lot of disk I/O into tmpfs. Any recommendation on stuff that are good candidates?
Originally posted by chbin Doesn't tmpfs my ramdisk obsolete. Now I'm thinking why does pat use an initrd image and then mount into with a ramdisk? Because the memory allocated to the ramdisk can never be gottin back. With tmpfs it can grow and shrink or just disappear depending on you.
pat has been reluctant to do even that, it wasn't in older versions.. also I'm not sure how and if that would work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.