LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-11-2002, 05:33 AM   #1
sourceman
Member
 
Registered: Feb 2002
Posts: 48

Rep: Reputation: 15
Question "SmartDrv" for Linux?


I'd like to know how Linux handles file caching.
There obviously has to be some caching going on.
How do I access and maybe change some settings though?

My situation...

I've created my own little Linux boot disk with a few utilities on.
Typically I use the boot disk to backup, copy and maintain my PC's.
I've noticed that the copying of files using the boot disk takes significantly longer than when I do it on my Linux PC.
I'm working on FAT partitions.

Am I missing some executables on my boot disk?
Is there some sort of "SmartDrv" for Linux, or does everything get handled by the kernel?
In which case, how do I set it up?

If someone can help with this i'd really appreciate it.
 
Old 02-11-2002, 06:22 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Your harddisk is probably not set in optimal mode. You can change that using hdparm. But I'd be carefull with the command because you can mess up your data if you do things wrong. Do a search on this site or in your favourite search engine for tweaking drives with hdparm.
 
Old 02-11-2002, 08:03 AM   #3
sourceman
Member
 
Registered: Feb 2002
Posts: 48

Original Poster
Rep: Reputation: 15
Smile

Thanks.

It's exactly what I was looking for.

I got my speed up from around 4Mb/second to above 15Mb/second.
 
Old 02-11-2002, 08:16 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
15mb/s isn't too hot still, a standard ata100 drive on a decent system should get about double that. my generic 5400rpm drives does about 30mbps, and it's nothing hot at all, maybe read up on hdparm a bit more to find those extra tweaks.

[root@trevor tmp]# hdparm -X66 -d1 /dev/hda
[root@trevor tmp]# hdparm -t /dev/hda

/dev/hda:
Timing buffered disk reads: 64 MB in 2.26 seconds = 28.32 MB/sec

Last edited by acid_kewpie; 02-11-2002 at 08:31 AM.
 
Old 02-11-2002, 08:31 AM   #5
sourceman
Member
 
Registered: Feb 2002
Posts: 48

Original Poster
Rep: Reputation: 15
Mmmmmmm....

The system I ran it on is a P3 450, ATA66 HDD.
The cached read speed was 74Mb/second.

I did notice there were some tweaks that were HDD specific and dangerous if you get it wrong.

I'm going to be running the same tweaks on many different systems, so I can't be too greedy, I might crash some HDD's.

I'm doing the following...

hdparm -c3d1m8 /dev/hda

The only one a bit risky there is the "m8", but I think it'll be ok.

You got any advice to make it better but keep it safe?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 04:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration