Walt Mankowski on 17 Apr 2015 07:45:34 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] swappiness and ssd


On Fri, Apr 17, 2015 at 10:41:54AM -0400, Soren Harward wrote:
> On Fri, Apr 17, 2015 at 10:26 AM, Walt Mankowski <waltman@pobox.com> wrote:
> > On Fri, Apr 17, 2015 at 10:00:01AM -0400, Soren Harward wrote:
> >> On Thu, Apr 16, 2015 at 3:36 PM, Eric H. Johnson
> >> <ejohnson@camalytics.com> wrote:
> >> > If you use Firefox a lot, you may want to move it's cache to ram as well. Your fstab line will look something like this:
> >> >
> >> > tmpfs /home/les/.mozilla/firefox/vkuuxfit.default/Cache tmpfs defaults,noatime 0 0
> >>
> >> If you have /tmp mounted in RAM (which you should), then a cleaner way
> >> to do this is just to change Firefox's cache directory to /tmp using
> >> the browser.cache.disk.parent_directory configuration setting.
> >> Chromium can do the same using the --disk-cache-dir command-line
> >> option.
> >
> > If you do this, you're essentially dedicating a portion of your RAM
> > solely to your web browser cache.  If you don't, the kernel's disk
> > cache will still keep frequently accessed web content in RAM, plus you
> > won't have to download everything again if you reboot.  Is it really
> > that much faster to justify dedicating RAM to it?
> 
> No.  But we were talking about putting web cache in RAM as a strategy
> for minimizing writes to physical disk, not as a way of speeding up
> web browsing.

Oops.  That's what I get for only replying to your snippet instead of
the original post.  I still don't think it's a good general-purpose
solution, but it would cut down on writes.

Walt

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug