[Samba] smbd using alot of cpu on HP-UX 11.11
P Ranjit Kumar
ranjit at cup.hp.com
Tue Jan 7 19:55:03 GMT 2003
Hello Danny Travis,
I am assuming you are using generic Samba 2.2.3a version. We came across the
problem and you can fix it by setting the cache variable on the devnm()
system cal to 1.
Just set the last parameter to the devnm() call in smbd/quotas.c to 1.
###################################
# ./samba2.2/source/smbd/quotas.c #
###################################
912a913,919
> #ifdef HPUX
> /* Need to set the cache flag to 1 for HPUX. Seems
> * to have a significant performance boost when
> * lstat calls on /dev access this function.
> */
> (devnm(S_IFBLK, S.st_dev, dev_disk, 256, 1)<0)) return (False);
> #else
913a921
> #endif
Thanks,
Ranjit @ HP CIFS Team
More information about the samba
mailing list