Results 1 to 2 of 2

Thread: reducing /run ramdisk size and reducing ram usage

  1. #1
    Join Date
    Apr 2012
    Beans
    3

    reducing /run ramdisk size and reducing ram usage

    Hi,

    I have a machine I am trying to save some ram on. I tried typing mount to see if there were any tmpfs mounted and I found about Ubuntu's /run. Being more used to Slackware than Ubuntu I looked for a /run entry in /etc/fstab but Ubuntu doesn't seem to use it for very much.

    How can I reduce the size of /run? Is this a good idea and how much is safe to reduce it by?

    If you have any other suggestions then I would be glad to hear them. The main thing which I have done is use xfce instead of Gnome for the desktop environment. I am sure there are other things I can to too,

  2. #2
    Join Date
    May 2010
    Location
    Tewkesbury uk
    Beans
    7,657
    Distro
    Ubuntu Development Release

    Re: reducing /run ramdisk size and reducing ram usage

    Hi

    Well you really want to keep it. Check out this link for an explanation and rationale for /run

    http://lwn.net/Articles/436012/

    The directory get mounted in the init script in init in initrd for your kernel version.

    Extract you initramfs

    Code:
    mkdir tmp/initramfs
    cd tmp/initramfs
    gunzip -c /boot/initrd.img-3.2.0-24-generic | cpio -i -d -H newc --no-absolute-filenames
    Change the initrd file name as required.

    Code:
    nano init
    Code:
    mount -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
    You can change the size there.

    Kind regards
    Join us on irc at #ubuntuforums. For web chat see here

    If you believe everything you read, you better not read. ~ Japanese Proverb

    Do not read newspapers on an empty stomach ~ Russian Proverb ~ BrunoLotse

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
  •