It is currently Thu Apr 17, 2014 12:35 am



Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Limiting writes to SSD on EEEPC
PostPosted: Thu Apr 29, 2010 3:47 pm 
Offline
User avatar

Joined: Fri Feb 20, 2009 3:44 am
Posts: 2446
Location: Pecos, Texas
Guys, I have been trying to setup this EEEPC so as to minimise writes as much as possible to internal SSD
drives. And the below is what I have come up with so far

This is how I have my browser cache setup. Borrowed from this page
http://posterous.mauriciovieira.net/how-to-firefox-cache-in-ramdisk-tmpfs

I make a new directory in /media called /media/ramdisk

Code:
root@biker:/mnt/sdb1/home/harry# mkdir /media/ramdisk
root@biker:/mnt/sdb1/home/harry#  mount -t tmpfs -o size=64M,nr_inodes=10k,mode=0777 tmpfs /media/ramdisk


Then I go into Iceape preferences and move cache to /media/ramdisk

about:config looks like this now when I type in browser.cache in the filter box

Code:
browser.cache.disk.parent_directory;/media/ramdisk


To automount the ramdisk I edit my /etc/fstab as follows

Code:
# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda1 / auto defaults,noatime 1 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
/dev/sdb1 /mnt/sdb1 ext2 auto,users,exec,noatime,errors=remount-ro 1 2
# Dynamic entries below
/dev/sda3 /mnt/sda3 vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
tmpfs /media/ramdisk tmpfs size=64M,nr_inodes=10k,mode=777 0 0


My Next step was to borrow some stuff from this page below.
http://lonesysadmin.net/2008/02/21/elevatornoop/

So I edited my /boot/grub/menu.lst as follows

Code:
timeout 10
color cyan/blue white/blue
foreground ffffff
background 0639a1

gfxmenu /boot/grub/message

title antiX at sda1, kernel 2.6.32-1-mepis-smp
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-1-mepis-smp root=/dev/sda1 elevator=noop nomce quiet nosplash vga=788
initrd /boot/initrd.img-2.6.32-1-mepis-smp
boot

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=b5c8ff9d-5016-4862-8c6c-b96ac634f9de ro
# kopt_2_6=root=UUID=b5c8ff9d-5016-4862-8c6c-b96ac634f9de ro nosplash quiet

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=788 resume=/dev/hda5
# defoptions=

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(single-user) single
# altoptions=(init-3) 3

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title      antiX-M8.5, kernel 2.6.32-1-mepis-smp
root      (hd0,0)
kernel      /boot/vmlinuz-2.6.32-1-mepis-smp root=UUID=b5c8ff9d-5016-4862-8c6c-b96ac634f9de ro elevator=noop nosplash quiet
initrd      /boot/initrd.img-2.6.32-1-mepis-smp

title      antiX-M8.5, kernel 2.6.32-1-mepis-smp (init-3)
root      (hd0,0)
kernel      /boot/vmlinuz-2.6.32-1-mepis-smp root=UUID=b5c8ff9d-5016-4862-8c6c-b96ac634f9de ro elevator=noop nosplash quiet 3
initrd      /boot/initrd.img-2.6.32-1-mepis-smp

title      antiX-M8.5, kernel memtest86+
root      (hd0,0)
kernel      /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST



I have rebooted since doing all these changes and it may be my imagination. But my Asus EEEPC 900 seems
to boot up faster and Iceape also seems to open up faster now also. I hope I got this right before I add
it to the How to Install AntiX 8.5 at my blog :? . Whaddya think?

_________________
Linux Registered User # 475019
Takes a Lot of MONEY to create poverty.
Linux atHome courses
Being controlled by OTHERS is not my Druthers.


Top
 Profile  
 
 
 Post subject: Re: Limiting writes to SSD on EEEPC
PostPosted: Thu Apr 29, 2010 4:06 pm 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 4669
Location: Greece
Great post.

I tried on my desktop, and tbh didn't notice any difference, but I'm sure eeepc users will see the benefits.

_________________
Philosophers have interpreted the world in many ways; the point is to change it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred