ksearch
RH-9 has a UTF-8 locale set by default. Perl 5.8.0 takes notice of that, and expects all your files to UTF-8, by default. The problem is UTF-8 is really slow.
[root@skyway2 map]# echo $LANG en_US.UTF-8 [root@skyway2 map]# time bash -c 'grep cluster /var/www/tech/websphere/*.html| wc -l' 99 real 0m0.484s user 0m0.370s sys 0m0.010s [root@skyway2 map]# LANG=C [root@skyway2 map]# time bash -c 'grep cluster /var/www/tech/websphere/*.html| wc -l' 99 real 0m0.017s user 0m0.000s sys 0m0.010sTo fix, change your default locale, given you don't use utf-8. Change in:
/etc/sysconfig/i18n
/etc/X11/xinit/xinitrc.dFor example:
$ cat /etc/sysconfig/i18n
#LANG="en_US.UTF-8"
LANG="C"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"