tashirosgt
29th April 2012, 06:19 AM
I have a few questions about the SSD guide http://forums.fedoraforum.org/showthread.php?t=277082
7/ Eliminate "Elevator" disk scheduler. [PERFORMANCE, RELIABILITY]
Rotating disks use the 'elevator' algorithm to schedule block access. This algorithm makes no sense for a SSD media where there are no cylinders and seek time is nearly constant.
Individual drives can use distinct scheduling algorithms by adding the following line to /etc/rc.d/rc.local
echo noop > /sys/block/sda/queue/scheduler
My understanding of /dev/... naming is that if you fiddle with your hardware and plug the SATA cables in different controllers, the SSD that was once /dev/sda could turn out to be /dev/sdb when you rebooted. Is there a version of the command echo noop > /sys/block/sda/queue/scheduler that uses the disk identifier instead of the /dev/sda type nomenclature?
ii) Write logs to a rotating drive.
An fstab entry similar to ....
/dev/sdb4 /var/log ext4 noatime 0 0
causes the device to be mounted on top of /var/log directory, however this mount will occur after rsyslog has already opened some log files. So after the mount (perhaps in /etc/rc.d/rc.local) it is necessary to send rsyslogd a SIGHUP signal to cause it to close and reopen log files.
/bin/kill -s HUP $(cat /var/run/syslogd.pid)
I'm curious where rsylog would write the log files if you didn't put the /bin/kill... command in rc.local. Would it create a /var directory somewhere?
This is probably a matter of understanding a very basic point about Linux filesystem handling. Suppose I have a filesystem mounted that has directory /var/X/Y. Suppose I then issue a mount command to mount a device at /var/X/Y. Do all subsequent attempts by the operating system to read and write to /var/X/Y use the newly mounted device? Or is there some scheme where the operating system trys the /var/X/Y on one of the devices and goes to the other device if the file operation fails?
7/ Eliminate "Elevator" disk scheduler. [PERFORMANCE, RELIABILITY]
Rotating disks use the 'elevator' algorithm to schedule block access. This algorithm makes no sense for a SSD media where there are no cylinders and seek time is nearly constant.
Individual drives can use distinct scheduling algorithms by adding the following line to /etc/rc.d/rc.local
echo noop > /sys/block/sda/queue/scheduler
My understanding of /dev/... naming is that if you fiddle with your hardware and plug the SATA cables in different controllers, the SSD that was once /dev/sda could turn out to be /dev/sdb when you rebooted. Is there a version of the command echo noop > /sys/block/sda/queue/scheduler that uses the disk identifier instead of the /dev/sda type nomenclature?
ii) Write logs to a rotating drive.
An fstab entry similar to ....
/dev/sdb4 /var/log ext4 noatime 0 0
causes the device to be mounted on top of /var/log directory, however this mount will occur after rsyslog has already opened some log files. So after the mount (perhaps in /etc/rc.d/rc.local) it is necessary to send rsyslogd a SIGHUP signal to cause it to close and reopen log files.
/bin/kill -s HUP $(cat /var/run/syslogd.pid)
I'm curious where rsylog would write the log files if you didn't put the /bin/kill... command in rc.local. Would it create a /var directory somewhere?
This is probably a matter of understanding a very basic point about Linux filesystem handling. Suppose I have a filesystem mounted that has directory /var/X/Y. Suppose I then issue a mount command to mount a device at /var/X/Y. Do all subsequent attempts by the operating system to read and write to /var/X/Y use the newly mounted device? Or is there some scheme where the operating system trys the /var/X/Y on one of the devices and goes to the other device if the file operation fails?