Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 39

Thread: Your precious Solid State Drive

  1. #21
    Join Date
    Nov 2007
    Beans
    331
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question Re: Your precious Solid State Drive

    Thank you, Paqman!

    What size should you give to /var and /tmp in a ramdisk, if you are an average user?

    For example, browsing the web with a lot of tabs open, maybe using a virtual machine, watching a movie, streaming youtube, that sort of stuff?

    Are there any sorts of applications in particular that would require larger ramdisks?
    Linux-libre ask for it
    Coreboot Free software to replace proprietary BIOS
    Trisquel a fully free GNU/Linux-libre distribution
    Open Source does not mean Free My Spec Earthlings

  2. #22
    Join Date
    Apr 2009
    Location
    NT, Australia
    Beans
    338
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Your precious Solid State Drive

    whoa whoa whoa, you definitely don't want /var on a ram disk. The locations you want on a ramdisk would be:
    /tmp
    /var/tmp
    /var/spool
    You put /var on a ram disk and you'll be in a bit of trouble

    add these to the end of your /etc/fstab file:
    tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
    tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0
    tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0

  3. #23
    Join Date
    May 2008
    Location
    bay area, california
    Beans
    197
    Distro
    Ubuntu

    Re: Your precious Solid State Drive

    I think in reading the diverging recommendations it is obvious that there is no universal agreeement that going beyond the noatime thing is worth it. If you do the temporary files, you may have to separately tune some programs -most notably Firefox- to change their behavior, and may ghet erratic performance.

    See http://tombuntu.com/index.php/2008/0...-state-drives/
    Here's how I roll in /etc/fstab

    #begin fstab info
    UUID=5da37f97-c506-4e7e-8c0d-1b6cde7fc2fe / ext4 discard,noatime,nodiratime,errors=remount-ro 0 1
    tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
    #end fstab info

    *And* I did the Firefox browser.cache.disk.parent_directory value to /tmp thing. Which is a must if you dio the tmp move, imho, I did notice odd Firefox dithering and decreased browsing perfromance before I did.

    The rest I didn't bother with. But that's just me. SSDs *are* write resistant in consumer system environments these days, we're just optimizing some further with noatime and such, and for heavy net browsing folk there just possibly *may* be some benefit to doing what I did, even though I am not sure I'd claim it's worth the bother.
    Last edited by pablolie; June 16th, 2012 at 04:40 AM.

  4. #24
    Join Date
    Jan 2007
    Beans
    6,542
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Your precious Solid State Drive

    Quote Originally Posted by Jagoly View Post
    whoa whoa whoa, you definitely don't want /var on a ram disk. The locations you want on a ramdisk would be:
    /tmp
    /var/tmp
    /var/spool
    You put /var on a ram disk and you'll be in a bit of trouble

    add these to the end of your /etc/fstab file:
    tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
    tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0
    tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
    Sorry, that's true. Personally I do /var/log and /var/log/apt. Could probably do /var/spool too, that's a good shout. I also mount with the noexec and nosuid options.

    Is there any benefit to doing noatime in a ramdisk?

    Yeehi: you don't need to specify a size, but you can if you want.

  5. #25
    Join Date
    Apr 2009
    Location
    NT, Australia
    Beans
    338
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Your precious Solid State Drive

    Quote Originally Posted by Paqman View Post
    Sorry, that's true. Personally I do /var/log and /var/log/apt. Could probably do /var/spool too, that's a good shout. I also mount with the noexec and nosuid options.

    Is there any benefit to doing noatime in a ramdisk?

    Yeehi: you don't need to specify a size, but you can if you want.
    In reality mounting /var/spool on the ramdisk is pointless, but it doesn't hurt
    But I'd never put the logs on the ramdisk, I use them anyway.
    It depends on your own preferences really.

    Also no there probably isn't any real benefit putting noatime on a ramdisk, but you're never going to need access times on a volatile file system, so if it's useless remove it is what I reckon

  6. #26
    Join Date
    Jan 2007
    Beans
    6,542
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Your precious Solid State Drive

    Quote Originally Posted by Jagoly View Post
    But I'd never put the logs on the ramdisk, I use them anyway.
    It depends on your own preferences really.
    Meh, I can't remember the last time I needed to look at logs on a desktop, and even then it'd only be the most recent stuff I was interested in. I guess it depends how often you reboot too.

  7. #27
    Join Date
    Nov 2007
    Beans
    331
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question Re: Your precious Solid State Drive

    You are all so knowledgeable! While you are all here, I would like you to chime in on aligning the SSD, too. There is an article about it here.

    I have in mind a clean installation of Vista and then putting on GNU/Linux as a dual boot. I worry that the dual booting will mis-align the partitions. It is a bit complicated. Do the partitions have to be at particular sizes to work optimally on the SSD?

    Don't all these sorts of things happen automatically in Ubuntu now? From which release did Ubuntu start doing automatic, nice SSD configuration?
    Last edited by yeehi; June 16th, 2012 at 11:04 AM.
    Linux-libre ask for it
    Coreboot Free software to replace proprietary BIOS
    Trisquel a fully free GNU/Linux-libre distribution
    Open Source does not mean Free My Spec Earthlings

  8. #28
    Join Date
    May 2008
    Location
    bay area, california
    Beans
    197
    Distro
    Ubuntu

    Re: Your precious Solid State Drive

    Quote Originally Posted by yeehi View Post
    ...
    Don't all these sorts of things happen automatically in Ubuntu now? From which release did Ubuntu start doing automatic, nice SSD configuration?
    I am not sure when it started, but I have been using SSDs since 10.04, and even then gparted and ext4 (in regular install) resulted in optimized alignment.

    Now 12.04 (probably somewhere in the 11.x tracks, bui I prefer to stick with LTS) added trim and automaticalled does the noatime etc during the install.

  9. #29
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Your precious Solid State Drive

    Quote Originally Posted by pablolie View Post
    I am not sure when it started, but I have been using SSDs since 10.04, and even then gparted and ext4 (in regular install) resulted in optimized alignment.

    Now 12.04 (probably somewhere in the 11.x tracks, bui I prefer to stick with LTS) added trim and automaticalled does the noatime etc during the install.
    Odd.

    I'm using a fresh install of 12.04 (actually 12.10 now) and I had to manually add the discard and noatime flags myself.
    Cheesemill

  10. #30
    Join Date
    Jun 2012
    Beans
    79

    Re: Your precious Solid State Drive

    SSD HDDs are only useful if youre on windows. to be honest the only place they are useful for is loading games quickly.

Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •