Ar~ How come linux grep Or sort so slow

hi,

I have do some testing, the access.log file is 25MB

under Freebsd box,

user@:~>time cat www.domain.com-access.log|grep Search >> test.txt

real 0m0.446s
user 0m0.050s
sys 0m0.336s

Under Linux box

[User@]$ time cat www.domain.com-access.log|grep Search >> test.txt

(i can not wait , too slow, so >Ctrl+C)

real 1m22.623s
user 0m17.840s
sys 0m0.258s


Under another linux box

[root@]# time cat www.domain.com-access.log|grep Search >> test.txt

real 0m31.989s
user 0m31.910s
sys 0m0.080s

WHAT HAPPEN !!!

Anyone saw this b4,?

 

 

 

 

Top