[squid-users] Very slow and high usage CPU on "Rebuilding storage"

From: Alexey Vlasov <renton_at_renton.name>
Date: Thu, 20 Nov 2008 18:38:24 +0300

Hi.

I've got very large /proc/mounts on my server,
# wc -l /proc/mounts
178885 /proc/mounts
Hence rebuilding storage takes much time. Does anyone know how to patch
squid, to make him stop doing this:

[pid 5875] write(5, "2008/11/20 18:07:11| Rebuilding "..., 73) = 73
[pid 5875] statfs("/var/cache/squid", {f_type="EXT2_SUPER_MAGIC",
f_bsize=4096, f_blocks=48062990, f_bfree=38347249, f_bavail=35905772,
f_files=12214272, f_ffree=11707777, f_fsid={-2065445204, -1263411833},
f_namelen=255, f_frsize=4096}) = 0
[pid 5875] stat("/var/cache/squid", {st_mode=S_IFDIR|0750,
st_size=4096, ...}) = 0
[pid 5875] open("/proc/mounts", O_RDONLY) = 13
[pid 5875] fstat(13, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
[pid 5875] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd1502c3000
[pid 5875] read(13, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) =
1024
[pid 5875] read(13, "/aaaa/bin ext3 rw,noatime,"..., 1024) = 1024
[pid 5875] read(13, "vvvvv_8b6088f6/dev/pts d"..., 1024) = 1024
[pid 5875] read(13, "sda5 /home/aaddd"..., 1024) = 1024
[pid 5875] read(13, ",data=ordered 0 0\n/dev/sda5 /hom"..., 1024) =
1024
[pid 5875] read(13, "=ordered 0 0\n/dev/sda5 /home/vvv"..., 1024) =
1024
[pid 5875] read(13, "3c3ad98f/tmp t"..., 1024) = 1024
[pid 5875] read(13, "/sssss0acf91d5/lib"..., 1024) = 1024
[pid 5875] read(13, "errors=continue,data=ordered 0 0"..., 1024) = 1024
[pid 5875] read(13, "rw,noatime,errors=continue,data="..., 1024) = 1024
[pid 5875] read(13, "www/7f8d61"..., 1024) = 1024
... my ~200k mounts ...

-- 
BRGDS. Alexey Vlasov.
Received on Thu Nov 20 2008 - 15:38:23 MST

This archive was generated by hypermail 2.2.0 : Fri Nov 21 2008 - 12:00:03 MST