[linux] squid cpu gettimeofday pool
Ladislav Kaderjak
laco na unicom.sk
Čtvrtek Říjen 6 13:00:05 CEST 2005
zda sa, ze moj mail sa nejak nepaci antiviru, takze este jeden pokus:
squid mi v pravidelnych intervaloch (~minuty) vytazuje CPU takmer na
100%, "cosi" (vid nizsie) urobi (~minuty) a tak dookola a zda sa ze to
nesuvisi so zatazenim poziadavkami od clientov
cosi:
.
.
.
read(23, "", 1985) = 0
read(45, "", 1985) = 0
gettimeofday({1128592735, 735454}, NULL) = 0
gettimeofday({1128592735, 735473}, NULL) = 0
poll([{fd=7, events=POLLIN}, {fd=15, events=POLLIN}, {fd=16,
events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20,
events=POLLIN}, {fd=21, events=POLLOUT}, {fd=22, events=POLLIN}, {fd=23,
events=POLLIN, revents=POLLIN}, {fd=24, events=POLLIN}, {fd=25,
events=POLLIN}, {fd=26, events=POLLIN}, {fd=27, events=POLLOUT}, {fd=28,
events=POLLIN}, {fd=29, events=POLLOUT}, {fd=30, events=POLLIN}, {fd=31,
events=POLLIN}, {fd=32, events=POLLIN}, {fd=33, events=POLLOUT}, {fd=34,
events=POLLIN}, {fd=35, events=POLLIN}, {fd=36, events=POLLOUT}, {fd=37,
events=POLLIN}, {fd=38, events=POLLIN}, {fd=39, events=POLLIN}, {fd=40,
events=POLLOUT}, {fd=41, events=POLLOUT}, {fd=42, events=POLLIN},
{fd=43, events=POLLIN}, {fd=44, events=POLLIN}, {fd=45, events=POLLIN,
revents=POLLIN}, {fd=46, events=POLLIN}, {fd=47, events=POLLIN}, {fd=48,
events=POLLOUT}, {fd=49, events=POLLOUT}, {fd=50, events=POLLOUT},
{fd=51, events=POLLIN}, {fd=53, events=POLLIN}, {fd=54, events=POLLIN},
{fd=55, events=POLLIN}, {fd=56, events=POLLIN}, {fd=61, events=POLLIN},
{fd=67, events=POLLIN}, {fd=73, events=POLLIN}, {fd=76, events=POLLIN},
{fd=78, events=POLLIN}, {fd=83, events=POLLIN}, {fd=88, events=POLLIN},
{fd=89, events=POLLIN}, {fd=91, events=POLLIN}, {fd=95, events=POLLIN},
{fd=101, events=POLLIN}, {fd=102, events=POLLIN}], 53, 350) = 2
.
.
na google zda sa, je to dost casty problem, ale riesenie sa mi
nepodarilo najst, vie ho niekto ?
CPU AMD Athlon(tm) XP 1800+
MEM 1GB
kernel 2.4.27
squid 2.5.STABLE3-2.fc1
cache_dir ufs /var/spool/squid 2048 32 256 (na ext3 ja viem, ze to nie
je optimalne, ale momentalne s tym nepohnem)
cache_mem 256 MB
--
laco na unicom.sk Ladislav Kaderjak
www.unicom.sk UNICOM Computer & Telematic, s.r.o.
Další informace o konferenci linux