[squid-users] Squid Problem with Kernel 2.4 !

From: Hamid Hashemi Golpayegani <[email protected]>
Date: Tue, 13 Nov 2001 01:55:03 +0330

Hi ,

I have installed squid 2.4 stable 2 and 1 on Kernel 2.4.x ( different
2.4 versions ) and found same problem on all of that .
My kernel is support ReiseirFS and my Cache partion is ReiserFS and I am
using Async-IO in squid . I am using the squid with IPCHAINS trasparent
mode . My machine is P4 Titan 1.5 GHz machine with 512 Megabyte of RAM .

All things works great about 24 hours after that my linux machine become
so slow that means that when I want to telnet to machine and restart the
machine I have to spend about 5 minute to type restart on my machine .
After restart all things works great again . I have changed the varios
version of squid and kernel and check the squid with kernel 2.2.19 and
ReiserFS patch and there is no problem and all things works great for
about 47 Days till now .
I want to know there is any problem with squid and kernel 2.4 in
Async-IO and ReiserFS or is there any trick ?!

My squid configuration is look like this :

cache_mem 64 MB
cache_dir aufs /var/spool/squid 13000 30 256

cache_effective_user squid
cache_effective_group squid

cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log

visible_hostname marmar5

cache_mgr root@morva.net

cache_peer marmar1.morva.net sibling 3128 3130
cache_peer marmar2.morva.net sibling 3128 3130
cache_peer marmar3.morva.net sibling 3128 3130
prefer_direct off

half_closed_clients off

cache_swap_low 80
cache_swap_high 95

maximum_object_size 5000 KB

ipcache_size 4096
ipcache_low 90
ipcache_high 95

refresh_pattern -i \.(htm|html|phtml|shtml)$ 43200 90% 129600
refresh_pattern -i \.(bmp|gif|jpeg|jpg)$ 43200 90% 129600
refresh_pattern -i \.(mov|wav|mp3|avi|ram)$ 43200 90% 129600
refresh_pattern -i \.(ps|midi|au|ra|rm)$ 43200 90% 129600
refresh_pattern -i \.(tar|zip|gz|js)$ 43200 90% 129600
refresh_pattern -i \.(doc|pdf|txt)$ 43200 90% 129600
#refresh_pattern -i . 0 95% 129600

hierarchy_stoplist ?
hierarchy_stoplist cgi
hierarchy_stoplist scripts
hierarchy_stoplist cgi-bin
hierarchy_stoplist hotmail ghasedak.net ghasedak.com morva.net morva.com
sahifeh.net sahifeh.com boshra.net boshra.com

acl all src 0.0.0.0/0.0.0.0
acl PURGE method purge
acl yaghut src 213.29.54.3
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
acl CONNECT method CONNECT
acl morva src 217.66.211.0/255.255.255.0
acl morva1 src 217.66.212.64/255.255.255.192
acl morva2 src 194.165.4.144/255.255.255.240
#acl domains dstdomain "/var/spool/domains/urls"
#acl words url_regex "/var/spool/domains/words"

http_access allow manager localhost
http_access allow purge localhost
http_access allow manager yaghut
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#http_access deny domains
#http_access deny words
http_access allow SSL_ports
http_access allow localhost
http_access allow morva
http_access allow morva1
http_access allow morva2
http_access deny purge
http_access deny all

icp_access allow all

miss_access allow all

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_uses_host_header on
httpd_accel_with_proxy on

My dmesg for the kernel shown this :

Linux version 2.4.14 (root@marmar5) (gcc version 2.95.3 20010315
(release)) #3 SMP Mon Nov 12 20:28:45 IRT 2001
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
 BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
 BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
 BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
found SMP MP-table at 000f4ef0
hm, page 000f4000 reserved twice.
hm, page 000f5000 reserved twice.
hm, page 000f0000 reserved twice.
hm, page 000f1000 reserved twice.
On node 0 totalpages: 131072
zone(0): 4096 pages.
zone(1): 126976 pages.
zone(2): 0 pages.
Intel MultiProcessor Specification v1.4
    Virtual Wire compatibility mode.
OEM ID: OEM00000 Product ID: PROD00000000 APIC at: 0xFEE00000
Processor #0 Pentium 4(tm) APIC version 17
I/O APIC #2 Version 17 at 0xFEC00000.
Processors: 1
Kernel command line: auto BOOT_IMAGE=Linux ro root=301 mem=512M
Initializing CPU#0
Detected 1500.293 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 2994.99 BogoMIPS
Memory: 513360k/524288k available (1229k kernel code, 10540k reserved,
405k data, 212k init, 0k highmem)
Dentry-cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Before vendor init, caps: 3febfbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 12K, L1 D cache: 8K
CPU: L2 cache: 256K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After vendor init, caps: 3febfbff 00000000 00000000 00000000
CPU: After generic, caps: 3febfbff 00000000 00000000 00000000
CPU: Common caps: 3febfbff 00000000 00000000 00000000
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
CPU: Before vendor init, caps: 3febfbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 12K, L1 D cache: 8K
CPU: L2 cache: 256K
Intel machine check reporting enabled on CPU#0.
CPU: After vendor init, caps: 3febfbff 00000000 00000000 00000000
CPU: After generic, caps: 3febfbff 00000000 00000000 00000000
CPU: Common caps: 3febfbff 00000000 00000000 00000000
CPU0: Intel(R) Pentium(R) 4 CPU 1500MHz stepping 0a
per-CPU timeslice cutoff: 731.50 usecs.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Error: only one processor found.
ENABLING IO-APIC IRQs
Setting 2 in the phys_id_present_map
...changing IO-APIC physical APIC ID to 2 ... ok.
init IO_APIC IRQs
 IO-APIC (apicid-pin) 2-0, 2-5, 2-9, 2-11, 2-12, 2-18, 2-20, 2-22 not
connected.
..TIMER: vector=0x31 pin1=2 pin2=0
number of MP IRQ sources: 19.
number of IO-APIC #2 registers: 24.
testing the IO APIC.......................

IO APIC #2......
.... register #00: 02000000
....... : physical APIC id: 02
.... register #01: 00178020
....... : max redirection entries: 0017
....... : PRQ implemented: 1
....... : IO APIC version: 0020
.... register #02: 00000000
....... : arbitration: 00
.... IRQ redirection table:
 NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:
 00 000 00 1 0 0 0 0 0 0 00
 01 001 01 0 0 0 0 0 1 1 39
 02 001 01 0 0 0 0 0 1 1 31
 03 001 01 0 0 0 0 0 1 1 41
 04 001 01 0 0 0 0 0 1 1 49
 05 000 00 1 0 0 0 0 0 0 00
 06 001 01 0 0 0 0 0 1 1 51
 07 001 01 0 0 0 0 0 1 1 59
 08 001 01 0 0 0 0 0 1 1 61
 09 000 00 1 0 0 0 0 0 0 00
 0a 001 01 0 0 0 0 0 1 1 69
 0b 000 00 1 0 0 0 0 0 0 00
 0c 000 00 1 0 0 0 0 0 0 00
 0d 001 01 0 0 0 0 0 1 1 71
 0e 001 01 0 0 0 0 0 1 1 79
 0f 001 01 0 0 0 0 0 1 1 81
 10 001 01 1 1 0 1 0 1 1 89
 11 001 01 1 1 0 1 0 1 1 91
 12 000 00 1 0 0 0 0 0 0 00
 13 001 01 1 1 0 1 0 1 1 99
 14 000 00 1 0 0 0 0 0 0 00
 15 001 01 1 1 0 1 0 1 1 A1
 16 000 00 1 0 0 0 0 0 0 00
 17 001 01 1 1 0 1 0 1 1 A9
IRQ to pin mappings:
IRQ0 -> 0:2
IRQ1 -> 0:1
IRQ3 -> 0:3
IRQ4 -> 0:4
IRQ6 -> 0:6
IRQ7 -> 0:7
IRQ8 -> 0:8
IRQ10 -> 0:10
IRQ13 -> 0:13
IRQ14 -> 0:14
IRQ15 -> 0:15
IRQ16 -> 0:16
IRQ17 -> 0:17
IRQ19 -> 0:19
IRQ21 -> 0:21
IRQ23 -> 0:23
.................................... done.
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1500.2878 MHz.
..... host bus clock speed is 100.0190 MHz.
cpu: 0, clocks: 1000190, slice: 500095
CPU0<T0:1000176,T1:500080,D:1,S:500095,C:1000190>
Waiting on wait_init_idle (map = 0x0)
All processors have done init_idle
PCI: PCI BIOS revision 2.10 entry at 0xfaf00, last bus=2
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 2: assuming transparent
Unknown bridge resource 2: assuming transparent
PCI: Using IRQ router PIIX [8086/2440] at 00:1f.0
PCI->APIC IRQ transform: (B0,I31,P3) -> 19
PCI->APIC IRQ transform: (B0,I31,P1) -> 17
PCI->APIC IRQ transform: (B0,I31,P2) -> 23
PCI->APIC IRQ transform: (B0,I31,P1) -> 17
PCI->APIC IRQ transform: (B1,I0,P0) -> 16
PCI->APIC IRQ transform: (B2,I1,P0) -> 21
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.15)
Starting kswapd
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ
SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
block: 128 slots per queue, batch=32
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
PIIX4: IDE controller on PCI bus 00 dev f9
PIIX4: chipset revision 18
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
keyboard: Timeout - AT keyboard not present?(ed)
keyboard: Timeout - AT keyboard not present?(f4)
hda: Maxtor 2B020H1, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: 40020624 sectors (20491 MB) w/2048KiB Cache, CHS=2491/255/63,
UDMA(100)
Partition check:
 hda: hda1 hda2 < hda5 hda6 hda7 hda8 >
FDC 0 is a post-1991 82077
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
02:01.0: 3Com PCI 3c905C Tornado at 0xa000. Vers LK1.1.16
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 440M
agpgart: Unsupported Intel chipset (device id: 1a30), you might want to
try agp_try_unsupported=1.
agpgart: no supported devices found.
[drm] Initialized tdfx 1.0.0 20010216 on minor 0
[drm] Initialized radeon 1.1.1 20010405 on minor 1
Linux Kernel Card Services 3.1.22
  options: [pci] [cardbus] [pm]
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 131072 bind 65536)
ip_conntrack (4096 buckets, 32768 max)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
ds: no socket drivers loaded!
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 212k freed
Adding Swap: 1028120k swap-space (priority -1)
reiserfs:warning: CONFIG_REISERFS_CHECK is set ON
reiserfs:warning: - it is slow mode for debugging.
reiserfs: checking transaction log (device 03:08) ...
journal-1153: found in header: first_unflushed_offset 109,
last_flushed_trans_id 20904
journal-1206: Starting replay from offset 109, trans_id 20904
journal-1299: Setting newest_mount_id to 12
Using r5 hash to sort names
ReiserFS version 3.6.25

--
Regards
    =================================================================
   /  Seyyed Hamid Reza    /        WINDOWS FOR NOW  !!            /
  /  Hashemi Golpayegani  /  Linux for future , FreeBSD for ever  /
 /    Morva System Co.   / ------------------------------------- /
/  Network Administrator/ hamid@morva.net   ,   ICQ# : 42209876 /
================================================================
 
Received on Tue Nov 13 2001 - 15:16:16 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:04:11 MST