From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5392,7ff89dac39824551,start X-Google-Attributes: gidf5392,public X-Google-Thread: 111c93,7ff89dac39824551,start X-Google-Attributes: gid111c93,public From: Arun Sharma Subject: ypbind takes too much cpu Date: 1998/03/06 Message-ID: #1/1 X-Deja-AN: 331592085 Sender: asharma@zugzwang.mcom.com Organization: Netscape Communications Corporation Newsgroups: comp.os.linux.alpha,comp.os.linux.development.system top shows 5%. I'm using # rpm -q ypbind ypbind-3.3-2 strace shows a repition of the following loop: select(256, [4 5], NULL, NULL, NULL) = 1 (in [5]) accept(5, {sin_family=AF_INET, sin_port=htons(9752), sin_addr=inet_addr("127.0.0.1")}, [16]) = 7 select(256, [4 5 7], NULL, NULL, NULL) = 1 (in [7]) select(256, [7], NULL, NULL, {35, 0}) = 1 (in [7], left {35, 0}) read(7, "\200\0\00044\2\30\220\0\0\0\0\0\0"..., 4000) = 56 fcntl(6, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0 lseek(6, 0, SEEK_SET) = 0 read(6, "mcom.com\0\0\0\0\0\0\0\0\0\0\0\0"..., 2240) = 2240 fcntl(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 fcntl(6, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0 lseek(6, 0, SEEK_SET) = 0 read(6, "mcom.com\0\0\0\0\0\0\0\0\0\0\0\0"..., 2240) = 2240 fcntl(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 write(7, "\200\0\0$4\2\30\220\0\0\0\1\0\0\0"..., 40) = 40 select(256, [4 5 7], NULL, NULL, NULL) = 1 (in [7]) select(256, [7], NULL, NULL, {35, 0}) = 1 (in [7], left {35, 0}) read(7, "", 4000) = 0 close(7) = 0 select(256, [4 5], NULL, NULL, NULL) = 1 (in [5]) The same rpm works just fine on Intel. -Arun