LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-15-2009, 10:34 AM   #1
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 972

Rep: Reputation: 56
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?

Last edited by trist007; 12-15-2009 at 10:47 AM.
 
Old 12-15-2009, 10:44 AM   #2
SethsdadtheLinuxer
Member
 
Registered: Jun 2007
Posts: 152

Rep: Reputation: 37
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.
 
Old 12-15-2009, 10:48 AM   #3
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 972

Original Poster
Rep: Reputation: 56
How do I make a loop device from memory?
 
Old 12-15-2009, 11:59 AM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,319

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
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.
 
Old 12-15-2009, 01:12 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,040
Blog Entries: 1

Rep: Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366
Hi,

Quote:
Originally Posted by SethsdadtheLinuxer View Post
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?

 
Old 12-15-2009, 04:01 PM   #6
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 972

Original Poster
Rep: Reputation: 56
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?
 
Old 12-15-2009, 05:18 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,093

Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
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.
 
Old 12-16-2009, 03:39 AM   #8
GazL
Senior Member
 
Registered: May 2008
Posts: 3,319

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
Quote:
Originally Posted by trist007 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
usb hard disk has 57% usage after formatted... sugar2 Linux - Hardware 2 08-10-2007 07:25 PM
Check hard disk usage per directory alaios Linux - General 4 10-09-2006 03:55 PM
How to control hard disk usage in Samba? depam Linux - Software 3 09-18-2006 12:49 AM
Total Hard Disk Usage kbeaver Linux - Newbie 4 09-03-2003 09:43 AM
Hard disk usage... plisken Linux - General 7 01-31-2003 03:17 AM


All times are GMT -5. The time now is 03:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration