Use tmpfs/ramdisk to speed up laptop?

Hi All,
I have a laptop with 3 gig of RAM, and a slow harddrive.
Basically I want to cache code, and run data directly, not-cached from the hard drive. For instance, when I use VLC to watch a movie, vlc would be cached in RAM, so it starts instantly, but the movie itself does not need to be cached at all. In fact, it hurts when the movie is cached, because then the movie will push programs out of the cache.
I have 2 partitions on my hard drive, one for data (/home and /storage) and one for the system (all other directories). It would be nice if I can mount /storage with the parameter "don't cache this pratition" I have not yet found such a parameter.
I could use a ramdisk with all my programs in it. This ramdisk will always be in RAM, so also my programs will always in ram. The problem with this approach is that I have 3 gig of ram (so my ramdrive can be 1.5GB), and my programs (/usr) is about 5 GB, so it will not fit.
What would happen when I create a tempfs mountpoint of 5 GB, and copy the entire /usr directory structure in it at boot time? It would require a swap partition of 3.5GB. Will this solution keep the most used programs in RAM, and the rest of the programs in swap, or is this a really stupid idea?
best regards,
Cedric
Last edited by cdwijs (2011-01-22 09:46:10)

pankajmore wrote:Actually go-preload might be more suitable for his needs. AFAIK , there is no way kernel can distinguish between data and "programs". go-preload uses mpadlock which essentially locks the programs you assign into RAM , so that they cant be swaped. I put my most used programs in go-preload and they always start up instantly since they are essentially locked into memory at boot time.
go-preload sounds like exactly what I need. Thank you for the suggestion. Would this work correctly when I have, say, firefox locked in ram, and I update firefox (with pacman -Suy)? Or should I re-run StartPreload.sh after everytime I update my system?
Link to go-preload: http://forums.gentoo.org/viewtopic-t-62 … eload.html
Best regards,
Cedric

Similar Messages

  • Using 9500 to access internet with laptop

    I have a basic laptop that is not connected to the internet. Is it possible to use the 9500 to connect my laptop to the internet.

    Absolutely. It is even quite straightforward and well-documented. You'll need to set up internet access on your phone first - your service provider will likely tell you how to do this.
    Once that's done you'll be able to use the phone just like any old modem. But, you'll need to install drivers onto your pc first. The drivers are downloadable from this site, and are also included in the PC Suite application (also downloadable from this site). In order to connect the phone and the laptop together you have a choice of what technology to use. The choices are bluetooth (good - phone needs to be in same room as laptop), infrared (not quite so good - phone needs to be within a foot or so of the laptop and the Infrared ports on both laptop and phone need to be in line-of-sight with each other) or using the usb cable that came with the phone (good, except you need to carry the cable with you). I seem to remember that the PC Suite application takes a lot of the pain out of setting all this stuff up for you. Plus the phone manual (again, downloadable from this site) will help. One final thing - if you're planning on using the phone just to dial up your ISP, you're talking very slow connection speeds. It might be worth looking at gprs or edge. You don't need to do anything with the phone, just talk to your cellular service provider to get the service enabled. HTH, Pete

  • HT4053 can i set up my new iphone 5s using my ipad (because my work laptop wont allow me to installl itunes).?

    can i set up my new iphone 5s using my ipad (because my work laptop wont allow me to installl itunes).?

    No, but you do not need iTunes to setup a new iPhone 5s. Create an iCloud backup for anything you want to transfer to the new iPhone.

  • Can I use my creative cloud at another laptop?

    Can I use creative cloud at my another laptop?
    Recently, I bought a new laptop. So I want to use my current installed adobe products at my new laptop.
    How can I do this?

    Just install the Creative Cloud like you did on the first machine.
    Creative Cloud Learn & Support
    http://helpx.adobe.com/creative-cloud.html
    Creative Cloud Help / Install, update, or uninstall apps
    http://helpx.adobe.com/creative-cloud/help/install-apps.html

  • Can i use my creative cloud membership on laptop and desktop? Or is one membership needed for each device?

    Can i use my creative cloud membership on laptop and desktop? Or is one membership needed for each device?

    Yes you can!

  • I have an apple tv 3 but when i use Home Sharing from my Windows Laptop the Apple TV shows all my music on the TV but it will only play 1 or 2 songs and then stops!!! Annoying, so I have to re-start iTunes on my Laptop and it will play 1 or 2 more songs

    I have an apple tv 3 but when i use Home Sharing from my Windows Laptop the Apple TV shows all my music on the TV but it will only play 1 or 2 songs and then stops!!! Annoying, so I have to re-start iTunes on my Laptop and it will play 1 or 2 more songs then stops again!!! still annoying.
    Can anyone assist me with this issue?
    Thanks

    To downgrade, you'll need to download the previous software version here: ATV3 http://appldnld.apple.com/AppleTV/041-4361.20120605.grjot/AppleTV3,1_5.0.2_9B830 _Restore.ipsw
    ATV2: http://appldnld.apple.com/AppleTV/041-4362.20120605.t8i4U/AppleTV2,1_5.0.2_9B830 _Restore.ipsw
    Next, plug the Apple TV into your computer with a micro-usb cable (most phones today use these) and start up Itunes. It should detect the Apple TV in recovery.
    After that, hold down Option on Apple or Alt on Windows and click Restore. This should open a window that allows you to select the software update you want to apply. Select the one you downloaded earlier.
    It will then go through the restore process, which takes only a few minutes, and then you will be able to plug the Apple TV back in to your display and set it up again.
    I recently ran into a similar issue with a bunch of these things and after restoring them all to the previous software version they are working again.

  • HT201413 i am using windows xp pro on a laptop, i access the internet thru a wireless connection, no problems. i start itunes and it will not connect to the internet

    i am using windows xp pro on a laptop and have never had a problem accessing the internet, and still dont.
    i purchased an iphone 4 and would like to sink it with my laptop, i installed itune 10.6 and it (itune) will not connest to the internet.
    this can not be a hard problem to solve, but i need help
    thanks

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 n above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    Apple software on Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • I currently use photoshop elements 10 on my laptop. My laptop has crashed and i need to install the exsisting software on my new laptop. please help?

    I currently use photoshop elements 10 on my laptop and my laptop crashed. I need to install the existing software on my new laptop. please help!

    Yes you can directly use the upgrade version.
    You can visit this page Photoshop Elements (PSE) knowledge base. for further assistance.
    Regards
    Kishan

  • Should I use a macbook pro as my laptop and desktop, or have a macbook pro and an iMac?

    i was wondering if i should use my macbook pro as a laptop and desktop, or if i should go ahead and buy a mac desktop too?

    Just look at how many posts are on this forum, let alone the Boot Camp forum, about Windows on a Mac.
    Got to any of the virtual machine software forums and take a look. Why do you thing there are 3 different virtual machine program available for the Mac to run Windows, let alone Apple's own Boot Camp system.
    If it wasn't needed do you think Apple would have there own system for installing and running Windows on all Mac computers.
    I personally don't know of any Mac users, and I know quit a few, that do not have a version of Windows installed on there Mac computers. Either in a boot camp partition or in one of the virtual machine programs.
    There is some software that has just Windows versions. If you need that software and you own a Mac you need Windows to run it.

  • I want to use my iPhone 4s internet in laptop

    i want to use my iphone 4s internet in laptop,
    so how can i do this ???

    If your cellular data provider allows Personal HotSpot, go to Settings > Cellular > Set Up Personal Hotspot and create the hotspot WiFi, then login to that WiFi you have created with your laptop.
    Most carriers charge for use of this service.

  • Can i use FCP in 13inch Retina display laptop

    Can i use FCP in 13inch Retina display laptop.
    Hi guys, i have purchased a new mac pro retina disply
    8Gb Ram
    128 Gb flash storage.
    i can use fcp in this or what else is required for fcp.

    About all you can do is google the old specs and look for a copy on Amazon. You said you just purchased the MBP. You do have 2 weeks from the date of purchase to return it and buy a different model if that helps.

  • When I opened up a new tab, I used to get the Speed Dial page. I like that. However, since I updated my AVG anti-virus program, now when I open a new tab, I get the AVG search page. Can I change it back so that I get the Speed Dial?

    In the past, when I opened up a new tab, I used to get the Speed Dial page. I like that. However, since I updated my AVG anti-virus program, now when I open a new tab, I get the AVG search page. Can I change it back so that I get the Speed Dial?

    I had that too. On the bottom right of the AVG search page is a link which leads you to where you can switch it off. This restores normal Speed Dial operation.
    This hijacking has really cheesed me off. I've just downloaded Avast and am going to put it on in place of AVG.

  • We currently have two ipods on my laptop.Last week we purchased another laptop. Both laptops use the same email address. I'm not sure what to do so he can now use his ipod on the new laptop. Please give specific instructions.

    We currently have two ipods on my laptop (my laptop Vista). Last week we purchased another laptop(Windows 7). Both laptops use the same email address.I'm not sure what to do so he can now use his ipod on the new laptop. Please give specific instructions.

    Copy everything from the old computer to the new one.

  • I know I get 2 downloads. I have one on my Mac. Can I use the other for my PC laptop?

    I know I get 2 downloads. I have one on my Mac. Can I use the other for my PC laptop?

    Hello david,
    that's correct. Cloud software can be installed on Mac and/or Windows for no extra cost. No platform swapping process is required.
    On the Mac simply sign in to creative.adobe.com with your Adobe ID and download the software. Same as you did on the PC.
    Hans-Günter

  • Can I use CC on my desktop and laptop with an individual membership?

    Can I use CC on my desktop and laptop with an individual membership?

    Hi arskhach ,
    Welcome to Adobe Forums.
    Yes, you can install and activate Creative Cloud desktop applications on two computers (desktop / laptop) , regardless of operating system.
    Please reply for any assistance.
    Thanks

Maybe you are looking for

  • 2 IPhones / 2 User Accounts & ITunes

    Me and my flatmate are both going to be getting IPhones when they hit Australia. My question is: We have separate user accounts/settings. I currently sync all my contacts, etc with my Palm Treo 680 from Entourage (via Ical/Address Book) with my user

  • [SOLVED] Unable to boot after kernel 3.9.2

    After update to 3.9.2, I was unable to boot. After bios screen I see a black screen with only a white cursor and it hangs forever. I was able to boot from a usb live image, mount my fs, arch-chroot and downgrade to 3.8.11, then it all worked. I am us

  • Prices picked up in PO

    hi experts, we are using condition table based pricing conditions updation with validity dates. but in PO if a price is not valid say for certain period then also the prices are picked are in PO from info record. Say one basic price was valid upto 31

  • IPad WiFi signal

    Why would my iPad have a weak or even no signal? I updated the router, we removed the leather cover.

  • Pause Frames in 2950-LRE

    Hello experts, I have an eight port 2950 Long Range Ethernet switch, model WS-C2950ST-8-LRE, with sw image c2950lre-i6l2q4-mz.121-22.EA5a.bin. I have CPE585 on the other end of the lre link. The distance is about 250 meters. When I issue the command,