LinuxQuestions.org
Visit Jeremy's Blog.
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-25-2004, 01:38 AM   #1
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Rep: Reputation: 30
Why is searching in linux so slow?


I use mandrake 9.2 and whenever i search my hard disk for a file or something it takes quite some time to finish. Also it uses much cpu cause my system responds rather slow when searching. What am i doin' wrong?
 
Old 02-25-2004, 01:39 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
First thing would be to use locate
rather than find ...

Next thing would be to check whether
you have DMA enabled for your HDD(s).

man hdparm

hdparm /dev/<hdd in question>


Cheers,
Tink
 
Old 02-25-2004, 04:05 AM   #3
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Thanx Tinkster

I've tried hdparm and it says my dma settings in 1 (on). So that's ok.
Is there a graphical front end for locate btw ?
 
Old 02-25-2004, 10:35 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Probably ... but since I only run Flux to have several
xterms open I wouldn't know :)

Search freshmeat! http://freshmeat.net


Cheers,
Tink
 
Old 02-25-2004, 01:17 PM   #5
natalinasmpf
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309

Rep: Reputation: 30
Graphical frontends are even slower because they have to correspond to a GUI.

Do they really take that slow? What is the speed of your hard disk under hdparm?
 
Old 02-26-2004, 06:11 PM   #6
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Here's hdparm's output

"
[root@localhost george]# hdparm /dev/hda5

/dev/hda5:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 9729/255/63, sectors = 107988867, start = 27824643
"
 
Old 02-26-2004, 06:23 PM   #7
Chris H
Member
 
Registered: Aug 2003
Location: Farnborough, UK
Distribution: Zenwalk
Posts: 288

Rep: Reputation: 30
Using 'find' under mandrake/kde is indeed slow as it does use the 'find' command. Much better to open up a terminal and use 'whereis' IMO.
 
Old 02-26-2004, 06:41 PM   #8
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Hmm.I tried locate and it said i have to update my database with the updatedb command.I've su and run updatedb. Do i have to updatedb manually each time i wanna search something?
 
Old 02-26-2004, 06:55 PM   #9
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
if u wanna search something new or after the time u did update then u will have to do it again
 
Old 02-26-2004, 08:15 PM   #10
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Rep: Reputation: 30
No, updatedb just updates the search database so that when you type "locate <file>" you get results instantly.

You only need to updatedb when you've added/deleted a lot of files.
 
  


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
Searching is slow heema LQ Suggestions & Feedback 11 06-02-2005 11:01 PM
Searching for util-linux sources cbonar Mandriva 6 11-18-2004 07:05 AM
Searching files on Linux dasoslukos Linux - Software 2 10-24-2004 11:12 PM
Searching linux-guide cicero Linux - Hardware 2 05-13-2003 04:48 PM
Searching out rough Linux Servers bankrupt Linux - Networking 2 03-11-2003 08:12 AM

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

All times are GMT -5. The time now is 03:38 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