Re: [squid-users] COSS trouble revisited ...

From: Odhiambo WASHINGTON <odhiambo.raburu@dont-contact.us>
Date: Sun, 5 Nov 2006 20:26:39 +0300

* On 05/11/06 18:04 +0100, Guido Serassio wrote:
| Hi,
|
| At 17.25 05/11/2006, Odhiambo WASHINGTON wrote:
| >* On 05/11/06 14:53 +0100, Guido Serassio wrote:
| >Hi Guido,
| >
| >5GB is what I expect, and perhaps this is where I may be missing the
| >point, if that specification says it is 5MB! Does my specification mean
| >the size is 5MB, not 5GB?
|
| 5MB.

Noted. This must have been a mistake that I made initially before going
into a cocoon to wait for 2.6STABLE4 to get into FreeBSD ports. At that
moment Squid was giving a complaint realated to disk size.

| Must be:
|
| cache_dir coss /usr/local/squid/squid-coss/c0d2p1 5120 max-size=131072
| cache_dir coss /usr/local/squid/squid-coss/c0d2p2 5120 max-size=1048575

Corrected! Thanks.

| >| And what are c0d2p1 and c0d2p2 ?
| >
| >These are more like device files... I created then manually
| >using:
| >
| >dd if=/dev/zero bs=1048576 count=5120 of=/$path/c0d2p1
| >dd if=/dev/zero bs=1048576 count=5120 of=/$path/c0d2p1
| >
| >| Mount points, devices or files ?
| >
| >Device files.
|
| No, they are regular files.

Agreed. I am not sure why I answered otherwise :(

| >| Your squid is crashing during the aio_read() system call, maybe a
| >| permission problem
| >
| >Not permission in it's literal sense, but maybe permission arising
| >from my not understanding this whole concept.
| >
| >-bash-2.05b$ cd /usr/local/squid/
| >-bash-2.05b$ ls -al
| >total 14
| >drwxr-xr-x 7 root wheel 512 Nov 5 15:52 .
| >drwxr-xr-x 39 root wheel 1024 Oct 8 22:27 ..
| >drwxr-x--- 2 squid squid 512 Nov 5 15:52 cache
| >drwxr-xr-x 18 squid squid 512 Aug 3 21:03 cache1
| >drwxr-xr-x 18 squid squid 512 Oct 18 20:42 cache2
| >drwxr-x--- 2 squid squid 1536 Nov 5 16:32 logs
| >drwxr-xr-x 2 squid squid 512 Oct 21 10:50 squid-coss
| >-bash-2.05b$ cd squid-coss/
| >-bash-2.05b$ ls -al
| >total 10490916
| >drwxr-xr-x 2 squid squid 512 Oct 21 10:50 .
| >drwxr-xr-x 7 root wheel 512 Nov 5 15:52 ..
| >-rw-r--r-- 1 squid squid 5368709120 Oct 21 10:49 c0d2p1
| >-rw-r--r-- 1 squid squid 5368709120 Oct 21 10:53 c0d2p2
| >-bash-2.05b$
|
| File permissions seems fine.
|
| >What do I need to do?
|
| Start with only one coss cache_dir and see what happens.

As recommended, I have started with just one cache_dir

cache_dir coss /usr/local/squid/coss1 5120 max-size=131072

(I recreated the files in a different location)

...but Squid still core dump:

beastie# gdb `which squid` squid.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `squid'.
Program terminated with signal 12, Bad system call.
Reading symbols from /lib/libcrypt.so.3...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /usr/lib/libssl.so.4...done.
Loaded symbols for /usr/lib/libssl.so.4
Reading symbols from /lib/libcrypto.so.4...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libpthread.so.2...done.
Loaded symbols for /lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x48314997 in aio_read () from /lib/libc.so.6
[New LWP 100182]
(gdb) where
#0 0x48314997 in aio_read () from /lib/libc.so.6
#1 0x080ea8cd in a_file_read (q=0x832c04c, fd=8, buf=0x8934000, req_len=1048576, offset=0,
    callback=0x80e9c8c <storeDirCoss_ReadStripeComplete>, data=0x8838110) at coss/async_io.c:98
#2 0x080e94fc in storeDirCoss_ReadStripe (rb=0x8838110) at coss/store_dir_coss.c:1238
#3 0x080e9834 in storeCossDirInit (sd=0x8325c00) at coss/store_dir_coss.c:1257
#4 0x080cac43 in storeDirInit () at store_dir.c:66
#5 0x080c82f8 in storeInit () at store.c:1592
#6 0x080af49f in main (argc=2, argv=0xbfbfeb70) at main.c:610

-Wash

http://www.netmeister.org/news/learn2quote.html

DISCLAIMER: See http://www.wananchi.com/bms/terms.php

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <wash@wananchi.com>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+
Isn't it strange that the same people that laugh at gypsy fortune
tellers take economists seriously?
Received on Sun Nov 05 2006 - 10:26:49 MST

This archive was generated by hypermail pre-2.1.9 : Fri Dec 01 2006 - 12:00:02 MST