You are here: Home » Reply

Reply To: NSLU2 Performance Tips?

#9169

rpedde
Participant

@chaintong wrote:

Here’s the mount, the music is on HDD_1_1_1, a drive which is not set to spin down, the other drive (which serves as my backup drive) spins down when not used.

I think I am begining to understand the directory structure a bit – but Ill will need some help changing the tmp location.

also – Weird that as a purely electical device (like a flash drive) is slower than a electro-mechanical device like a HDD

Yeah, you’d think, but seems like usb hard drives do writes at something like 20-30 MB/sec, while even the “high speed” flash drives clock around 12 or so. And average ones are probably around 8.

They are speedy on reads, though.

/dev/sda1 on / type ext3 (rw)
/proc on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/sda1 on /share/flash/data type ext3 (rw)
/dev/sda2 on /share/flash/conf type ext3 (rw,sync)
/dev/sdb1 on /share/hdd/data/HDD_1_1_1 type ufsd (rw)
/dev/sdc1 on /share/hdd/data/HDD_1_2_1 type ufsd (rw)

Okay, so the flash drive is mounted as root, as /dev/sda1.

You can do something like:


# mkdir /share/hdd/data/HDD_1_1_1/tmp
# chmod 777 /share/hdd/data/HDD_1_1_1/tmp
# mv /tmp /tmp.old
# ln -s /share/hdd/data/HDD_1_1_1/tmp /tmp

That should link the /tmp folder to a directory on the hard drive. Then, stop and start the server. See what that does.

Not sure what will happen on reboot — it will probably make a new /tmp when it boots, so if this helps, we’ll have ot find a way to maek it permanent.

— Ron