LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   A question about hard disk usage... (http://www.linuxquestions.org/questions/linux-newbie-8/a-question-about-hard-disk-usage-775814/)

trist007 12-15-2009 10:34 AM

A question about hard disk usage...
 
I am running Slackware 13.0. I run it headless, so it's command line only via ssh. It currently streams 17 songs that are on a playlist in an endless loop. The server is on top of my mini fridge by my bed, so at night, I can see the hdd light blinking every 2 seconds. The light is in blue so it lights up the whole room. I'm thinking about removing the hdd light hehe.

Anyhow, was wondering, because I'm streaming these files, my hard drive is constantly being read. This obviously reduces the life of my hard disk. Should I put the songs on a flash memory stick instead and them playing from there? Should I put the songs in a section of my ram or swap? If so, how would I do so /dev/ramdisk?

Or am I just overreacting and that my hard drive reduction in life by streaming these songs is neglible?

SethsdadtheLinuxer 12-15-2009 10:44 AM

flash memory is a BAADD idea. that will wear out faster than a hard drive. you could make a loop device for memory and play from there. The way you're doing it now will probably shorten the life of your drive by < %10.

trist007 12-15-2009 10:48 AM

How do I make a loop device from memory?

GazL 12-15-2009 11:59 AM

Unless your system is very memory constrained then after the first pass of your 17 songs, I'd expect they'd all be in the filesystem cache anyway so there shouldn't be that much additional disk read activity after that.

You might want to look at mounting the filesystem containing your songs with the 'noatime' option to remove the access time timestamp updates.

Also, you probably want to stop hal from running (especially so as you're headless) as that can cause regular disk activity.

onebuck 12-15-2009 01:12 PM

Hi,

Quote:

Originally Posted by SethsdadtheLinuxer (Post 3792416)
flash memory is a BAADD idea. that will wear out faster than a hard drive. you could make a loop device for memory and play from there. The way you're doing it now will probably shorten the life of your drive by < %10.

How would a read damage the flash memory cell(s)? Where do you get the '10%' for the drive?

:hattip:

trist007 12-15-2009 04:01 PM

If I disable HAL, then when I insert a flash drive, will I still get a message in /var/log/messages that tells me what /dev that flash is under?

syg00 12-15-2009 05:18 PM

Enable blktrace and run the userspace tools to find out who is doing the physical I/O. When you know the real culprit, it'll be easier to target a fix.

GazL 12-16-2009 03:39 AM

Quote:

Originally Posted by trist007 (Post 3792771)
If I disable HAL, then when I insert a flash drive, will I still get a message in /var/log/messages that tells me what /dev that flash is under?

Yes, that all happens at the kernel level. HAL sits above all that stuff and is mostly there to support Desktop Environments for things like automount and suchlike. If you're not running X11 and a Desktop Environment then you'll probably find HAL is of little if any use.


All times are GMT -5. The time now is 04:32 AM.