LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-19-2004, 12:57 PM   #1
Neelesh
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
Lightbulb grep is faster in SUSE the REDHAT


When i try to grep an 1gb file in fedora core 1 it takes almost 10 minutes

but the same same hardware configuration on suse 9 it takes 30 seconds

can any one can suggest some changes in fedora so that grep will be

faster in Fedora too.
 
Old 07-19-2004, 01:20 PM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
How about some other information like Hardware, kernel, filesystem type?
 
Old 07-19-2004, 02:19 PM   #3
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
grep is faster in SUSE than REDHAT

Hi,

The command line is pretty slow in FC1, particularly grep, the tech boffin at work says that it may have something to do with the filesystem setup (whatever that means), but an "outside the square" solution is to upgrade to Fedora Core 1 from Redhat 7.3 (not RH8 or RH9). This works (and is what I have done on my system to overcome the slow command line problem), but I have found that the overall installation is a bit of a mess with dependencies etc.

I am running a PIII 733 with 256Mb RAM, oldish hardware but not that old! Debian 3 is lightning quick on this system...

I hope that someone has been able to fix this issue for FC2.

cheers,

jdw
 
Old 07-21-2004, 01:07 PM   #4
Neelesh
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Blinker_Fluid
How about some other information like Hardware, kernel, filesystem type?
my suse default installation with reiserfs (filesystem)
Fedora is default installation with ext3 filesystem

hardware for both are identical

the size log file is also identical on both the system

is there any changes can be made on kernel parameter side ????
 
Old 07-21-2004, 01:12 PM   #5
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
reiserfs is supposed to be faster then ext3

maybe upgrade to a faster file system (theres reiserfs, xfs, and i never hear anything on jfs (from the specs i found somewhere its better then ext2/3 when it comes to file sizes and such)
 
Old 07-21-2004, 04:39 PM   #6
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
Even though reiser IS faster than ext3, that
shouldn't make that much of a difference ...

I'd look at DMA as a possible source. Or
DeadRat checking every single file you're
accessing ...

What does hdparm /dev/hda (or whichever
drive it's installed on) say in either system?


Cheers,
Tink
 
Old 07-25-2004, 10:50 AM   #7
jpl
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
If my Linux version 2.6.7-rc3 fedora2 setup is representative,
the problem is with grep (or, more likely, the regexp library),
not with the file system. I base this on the observation that
"anchored" greps, like "^#X" are more than 50 times slower
than "unanchored" greps, like "#X" on the same file. On assorted
other systems, the anchored patterns are faster, as one might
expect from a well-implemented Boyer-Moore pattern matcher.
 
Old 07-25-2004, 03:31 PM   #8
jpl
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
With apologies for following up my own followup
(I am, as the title shows, a newbie), a bit of googling
has revealed that the real culprit is UTF8. My default LANG is
en_US.UTF-8
If I simply change that to
en_US.iso885915
grep suddenly starts running 100 times faster!!!
I still regard this as a flaw in the regexp processing,
but it's certainly an easy "fix". Give it a shot.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make SuSE/firefox browser faster? LeanPudLou SUSE / openSUSE 1 01-15-2005 05:09 PM
How do I make SUSE load faster? sdat1333 SUSE / openSUSE 7 12-13-2004 02:14 AM
How do I make suse faster on startup? AGilley007 Linux - Distributions 1 08-06-2004 09:32 PM
Making KDE 3.1 in RedHat 9 run faster Sn1PeR Red Hat 5 09-11-2003 07:07 PM
Faster RedHat with idebus tjm Linux - General 1 11-12-2002 09:49 AM

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

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

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