ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Дохнет squid
@ 2004-12-06 12:33 Eugene Prokopiev
  2004-12-06 13:04 ` Eugene Prokopiev
  2004-12-06 13:08 ` Eugene Prokopiev
  0 siblings, 2 replies; 11+ messages in thread
From: Eugene Prokopiev @ 2004-12-06 12:33 UTC (permalink / raw)
  To: community

Здравствуйте!

Что-то начал дохнуть squid. В /var/log/messages:

Dec  6 15:26:38 ewsd squid: squid startup succeeded
Dec  6 15:26:38 ewsd squid[1884]: Squid Parent: child process 1893 started
Dec  6 15:26:40 ewsd (squid): xcalloc: Unable to allocate 206402311 
blocks of 1 bytes!
Dec  6 15:26:40 ewsd squid[1884]: Squid Parent: child process 1893 
exited due to signal 6
Dec  6 15:26:43 ewsd squid[1884]: Squid Parent: child process 1898 started
Dec  6 15:26:44 ewsd (squid): xcalloc: Unable to allocate 206402311 
blocks of 1 bytes!
Dec  6 15:26:45 ewsd squid[1884]: Squid Parent: child process 1898 
exited due to signal 6
Dec  6 15:26:48 ewsd squid[1884]: Squid Parent: child process 1902 started
Dec  6 15:26:49 ewsd (squid): xcalloc: Unable to allocate 206402311 
blocks of 1 bytes!
Dec  6 15:26:49 ewsd squid[1884]: Squid Parent: child process 1902 
exited due to signal 6
Dec  6 15:26:52 ewsd squid[1884]: Squid Parent: child process 1907 started
Dec  6 15:26:53 ewsd (squid): xcalloc: Unable to allocate 206402311 
blocks of 1 bytes!
Dec  6 15:26:53 ewsd squid[1884]: Squid Parent: child process 1907 
exited due to signal 6
Dec  6 15:26:56 ewsd squid[1884]: Squid Parent: child process 1911 started
Dec  6 15:26:58 ewsd (squid): xcalloc: Unable to allocate 206402311 
blocks of 1 bytes!
Dec  6 15:26:58 ewsd squid[1884]: Squid Parent: child process 1911 
exited due to signal 6
Dec  6 15:26:58 ewsd squid[1884]: Exiting due to repeated, frequent failures

К чему бы это?

-- 
С уважением, Прокопьев Евгений


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] Дохнет squid
  2004-12-06 12:33 [Comm] Дохнет squid Eugene Prokopiev
@ 2004-12-06 13:04 ` Eugene Prokopiev
  2004-12-06 13:08 ` Eugene Prokopiev
  1 sibling, 0 replies; 11+ messages in thread
From: Eugene Prokopiev @ 2004-12-06 13:04 UTC (permalink / raw)
  To: community

Eugene Prokopiev пишет:

> Здравствуйте!
> 
> Что-то начал дохнуть squid. В /var/log/messages:
> 
> Dec  6 15:26:38 ewsd squid: squid startup succeeded
> Dec  6 15:26:38 ewsd squid[1884]: Squid Parent: child process 1893 started
> Dec  6 15:26:40 ewsd (squid): xcalloc: Unable to allocate 206402311 
> blocks of 1 bytes!

здесь http://www.squid-cache.org/Doc/FAQ/FAQ-8.html#ss8.7 рекомедуют 
проверить, хватает ли свопа:

# free
              total       used       free     shared    buffers     cached
Mem:         30372      24176       6196          0       4240       8404
-/+ buffers/cache:      11532      18840
Swap:       136512       6308     130204

Вроде жить можно.

Затем предлагают проверить data segment size:

# ulimit -aH
core file size        (blocks, -c) unlimited
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) unlimited
max memory size       (kbytes, -m) unlimited
open files                    (-n) 1024
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) unlimited
cpu time             (seconds, -t) unlimited
max user processes            (-u) 255
virtual memory        (kbytes, -v) unlimited

Тоже хватает ;)

В чем тогда беда?




-- 
С уважением, Прокопьев Евгений


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] Дохнет squid
  2004-12-06 12:33 [Comm] Дохнет squid Eugene Prokopiev
  2004-12-06 13:04 ` Eugene Prokopiev
@ 2004-12-06 13:08 ` Eugene Prokopiev
  2004-12-06 13:32   ` Alexandr R. Ogurtzoff
  2004-12-06 14:34   ` Nizamov Shavkat
  1 sibling, 2 replies; 11+ messages in thread
From: Eugene Prokopiev @ 2004-12-06 13:08 UTC (permalink / raw)
  To: community

Eugene Prokopiev пишет:

> Здравствуйте!
> 
> Что-то начал дохнуть squid

Падает он практически сразу после старта, в /var/log/squid/cache.log 
куча вот таких вот сообщений:

2004/12/06 16:00:08| Starting Squid Cache version 2.5.STABLE1 for 
i586-alt-linux-gnu...
2004/12/06 16:00:08| Process ID 2282
2004/12/06 16:00:08| With 1024 file descriptors available
2004/12/06 16:00:08| DNS Socket created at 0.0.0.0, port 1129, FD 5
2004/12/06 16:00:08| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2004/12/06 16:00:08| User-Agent logging is disabled.
2004/12/06 16:00:08| Unlinkd pipe opened on FD 10
2004/12/06 16:00:08| Swap maxSize 102400 KB, estimated 7876 objects
2004/12/06 16:00:08| Target number of buckets: 393
2004/12/06 16:00:08| Using 8192 Store buckets
2004/12/06 16:00:08| Max Mem  size: 8192 KB
2004/12/06 16:00:08| Max Swap size: 102400 KB
2004/12/06 16:00:08| Local cache digest enabled; rebuild/rewrite every 
3600/3600 sec
2004/12/06 16:00:08| Rebuilding storage in /var/spool/squid (CLEAN)
2004/12/06 16:00:08| Using Least Load store dir selection
2004/12/06 16:00:08| Set Current Directory to /var/spool/squid
2004/12/06 16:00:08| Loaded Icons.
2004/12/06 16:00:08| Accepting HTTP connections at 0.0.0.0, port 3128, 
FD 12.
2004/12/06 16:00:08| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2004/12/06 16:00:08| Accepting SNMP messages on port 3401, FD 14.
2004/12/06 16:00:08| WCCP Disabled.
2004/12/06 16:00:08| ipcCreate: /usr/lib/squid/pinger: (2) No such file 
or directory
2004/12/06 16:00:08| Pinger socket opened on FD 16
2004/12/06 16:00:08| Ready to serve requests.
2004/12/06 16:00:08| Store rebuilding is 45.6% complete
2004/12/06 16:00:09| Done reading /var/spool/squid swaplog (8986 entries)
2004/12/06 16:00:09| Finished rebuilding storage from disk.
2004/12/06 16:00:09|      8986 Entries scanned
2004/12/06 16:00:09|         0 Invalid entries.
2004/12/06 16:00:09|         0 With invalid flags.
2004/12/06 16:00:09|      8986 Objects loaded.
2004/12/06 16:00:09|         0 Objects expired.
2004/12/06 16:00:09|         0 Objects cancelled.
2004/12/06 16:00:09|         0 Duplicate URLs purged.
2004/12/06 16:00:09|         0 Swapfile clashes avoided.
2004/12/06 16:00:09|   Took 1.3 seconds (6740.6 objects/sec).
2004/12/06 16:00:09| Beginning Validation Procedure
2004/12/06 16:00:09|   Completed Validation Procedure
2004/12/06 16:00:09|   Validated 8986 Entries
2004/12/06 16:00:09|   store_swap_size = -1799240k
FATAL: xcalloc: Unable to allocate 206402311 blocks of 1 bytes!

Squid Cache (Version 2.5.STABLE1): Terminated abnormally.
CPU Usage: 1.190 seconds = 0.670 user + 0.520 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 473
Memory usage for squid via mallinfo():
         total space in arena:      32 KB
         Ordinary blocks:            1 KB      1 blks
         Small blocks:               0 KB      0 blks
         Holding blocks:          2252 KB      2 blks
         Free Small blocks:          0 KB
         Free Ordinary blocks:      30 KB
         Total in use:            2253 KB 7041%
         Total free:                30 KB 97%
2004/12/06 16:00:09| storeDirWriteCleanLogs: Starting...
2004/12/06 16:00:09| WARNING: Closing open FD   12
2004/12/06 16:00:09|   Finished.  Wrote 8986 entries.
2004/12/06 16:00:09|   Took 0.0 seconds (200777.5 entries/sec).



-- 
С уважением, Прокопьев Евгений


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] Дохнет squid
  2004-12-06 13:08 ` Eugene Prokopiev
@ 2004-12-06 13:32   ` Alexandr R. Ogurtzoff
  2004-12-06 13:45     ` Eugene Prokopiev
  2004-12-06 14:34   ` Nizamov Shavkat
  1 sibling, 1 reply; 11+ messages in thread
From: Alexandr R. Ogurtzoff @ 2004-12-06 13:32 UTC (permalink / raw)
  To: community

 Привет!
> Падает он практически сразу после старта, в /var/log/squid/cache.log
> куча вот таких вот сообщений:
 Тоже неделю топтался с этим, но на SUSE-9.1.
Прогнал через starce падает после pool[.......];
close(...);
close(...);
close(...);
SegFault.
Как победить не нашёл, откатился на SUSE 9.0 всё тоже самое, работает.
Ядро или glibc ? 
-- 
Best regards
Alexandr R. Ogurtzoff
{
UNIX is user friendly, it's just picky about who its friends are
}


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] Дохнет squid
  2004-12-06 13:32   ` Alexandr R. Ogurtzoff
@ 2004-12-06 13:45     ` Eugene Prokopiev
  0 siblings, 0 replies; 11+ messages in thread
From: Eugene Prokopiev @ 2004-12-06 13:45 UTC (permalink / raw)
  To: community

Alexandr R. Ogurtzoff пишет:

>  Привет!
> 
>>Падает он практически сразу после старта, в /var/log/squid/cache.log
>>куча вот таких вот сообщений:
> 
>  Тоже неделю топтался с этим, но на SUSE-9.1.
> Прогнал через starce падает после pool[.......];
> close(...);
> close(...);
> close(...);
> SegFault.
> Как победить не нашёл, откатился на SUSE 9.0 всё тоже самое, работает.
> Ядро или glibc ? 

полгода работало (ALM 2.2) и вдруг отвалилось :(

-- 
С уважением, Прокопьев Евгений


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] Дохнет squid
  2004-12-06 13:08 ` Eugene Prokopiev
  2004-12-06 13:32   ` Alexandr R. Ogurtzoff
@ 2004-12-06 14:34   ` Nizamov Shavkat
  2004-12-07  5:44     ` Eugene Prokopiev
  2004-12-07  5:48     ` Eugene Prokopiev
  1 sibling, 2 replies; 11+ messages in thread
From: Nizamov Shavkat @ 2004-12-06 14:34 UTC (permalink / raw)
  To: community

> Eugene Prokopiev пишет:
>
>> Здравствуйте!
>>
>> Что-то начал дохнуть squid
>
> Падает он практически сразу после старта, в /var/log/squid/cache.log
> куча вот таких вот сообщений:
> 2004/12/06 16:00:09|   Validated 8986 Entries
> 2004/12/06 16:00:09|   store_swap_size = -1799240k
> FATAL: xcalloc: Unable to allocate 206402311 blocks of 1 bytes!

возможно что-то плохое случилось с кэшем.
попробуйте squid -z



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] Дохнет squid
  2004-12-06 14:34   ` Nizamov Shavkat
@ 2004-12-07  5:44     ` Eugene Prokopiev
  2004-12-07  5:48     ` Eugene Prokopiev
  1 sibling, 0 replies; 11+ messages in thread
From: Eugene Prokopiev @ 2004-12-07  5:44 UTC (permalink / raw)
  To: community

Nizamov Shavkat пишет:
>>Eugene Prokopiev пишет:
>>
>>
>>>Здравствуйте!
>>>
>>>Что-то начал дохнуть squid
>>
>>Падает он практически сразу после старта, в /var/log/squid/cache.log
>>куча вот таких вот сообщений:
>>2004/12/06 16:00:09|   Validated 8986 Entries
>>2004/12/06 16:00:09|   store_swap_size = -1799240k
>>FATAL: xcalloc: Unable to allocate 206402311 blocks of 1 bytes!
> 
> 
> возможно что-то плохое случилось с кэшем.
> попробуйте squid -z

это я попробовал в первую очередь :(

-- 
С уважением, Прокопьев Евгений


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] Дохнет squid
  2004-12-06 14:34   ` Nizamov Shavkat
  2004-12-07  5:44     ` Eugene Prokopiev
@ 2004-12-07  5:48     ` Eugene Prokopiev
  2004-12-07  5:52       ` Nizamov Shavkat
  1 sibling, 1 reply; 11+ messages in thread
From: Eugene Prokopiev @ 2004-12-07  5:48 UTC (permalink / raw)
  To: community

И вообще, чего это за математика такая?

2004/12/07 08:42:43| Beginning Validation Procedure
2004/12/07 08:42:43| WARNING: Disk space over limit: -1879492 KB > 102400 KB
2004/12/07 08:42:43|   Completed Validation Procedure
2004/12/07 08:42:43|   Validated 8986 Entries
2004/12/07 08:42:43|   store_swap_size = -1799240k
FATAL: xcalloc: Unable to allocate 206402311 blocks of 1 bytes!

Squid Cache (Version 2.5.STABLE1): Terminated abnormally.


-- 
С уважением, Прокопьев Евгений


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] Дохнет squid
  2004-12-07  5:48     ` Eugene Prokopiev
@ 2004-12-07  5:52       ` Nizamov Shavkat
  2004-12-07  6:02         ` Eugene Prokopiev
  0 siblings, 1 reply; 11+ messages in thread
From: Nizamov Shavkat @ 2004-12-07  5:52 UTC (permalink / raw)
  To: community

> И вообще, чего это за математика такая?
>
> 2004/12/07 08:42:43| Beginning Validation Procedure
> 2004/12/07 08:42:43| WARNING: Disk space over limit: -1879492 KB > 102400
> KB
> 2004/12/07 08:42:43|   Completed Validation Procedure
> 2004/12/07 08:42:43|   Validated 8986 Entries
> 2004/12/07 08:42:43|   store_swap_size = -1799240k
> FATAL: xcalloc: Unable to allocate 206402311 blocks of 1 bytes!
>
> Squid Cache (Version 2.5.STABLE1): Terminated abnormally.

проблемы с ФС ? а что если создать кэш в другой директории а еще лучше на
другом разделе ?



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] Дохнет squid
  2004-12-07  5:52       ` Nizamov Shavkat
@ 2004-12-07  6:02         ` Eugene Prokopiev
  2004-12-07  6:15           ` Eugene Prokopiev
  0 siblings, 1 reply; 11+ messages in thread
From: Eugene Prokopiev @ 2004-12-07  6:02 UTC (permalink / raw)
  To: community

Nizamov Shavkat пишет:

>>И вообще, чего это за математика такая?
>>
>>2004/12/07 08:42:43| Beginning Validation Procedure
>>2004/12/07 08:42:43| WARNING: Disk space over limit: -1879492 KB > 102400
>>KB
>>2004/12/07 08:42:43|   Completed Validation Procedure
>>2004/12/07 08:42:43|   Validated 8986 Entries
>>2004/12/07 08:42:43|   store_swap_size = -1799240k
>>FATAL: xcalloc: Unable to allocate 206402311 blocks of 1 bytes!
>>
>>Squid Cache (Version 2.5.STABLE1): Terminated abnormally.
> 
> 
> проблемы с ФС ? а что если создать кэш в другой директории а еще лучше на
> другом разделе ?

или пересоздать ФС? там, как и положено, reiser

кстати, squid -z не уменьшал занятое пространство на этой ФС.
сделал rm -rf /var/spool/squid, а затем squid -z - после этого squid 
заработал

-- 
С уважением, Прокопьев Евгений


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] Дохнет squid
  2004-12-07  6:02         ` Eugene Prokopiev
@ 2004-12-07  6:15           ` Eugene Prokopiev
  0 siblings, 0 replies; 11+ messages in thread
From: Eugene Prokopiev @ 2004-12-07  6:15 UTC (permalink / raw)
  To: community

> или пересоздать ФС? там, как и положено, reiser

пересоздал для пущей уверенности, жаль только забыл сделать reiserfsck 
перед rm -rf


-- 
С уважением, Прокопьев Евгений


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-12-07  6:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-06 12:33 [Comm] Дохнет squid Eugene Prokopiev
2004-12-06 13:04 ` Eugene Prokopiev
2004-12-06 13:08 ` Eugene Prokopiev
2004-12-06 13:32   ` Alexandr R. Ogurtzoff
2004-12-06 13:45     ` Eugene Prokopiev
2004-12-06 14:34   ` Nizamov Shavkat
2004-12-07  5:44     ` Eugene Prokopiev
2004-12-07  5:48     ` Eugene Prokopiev
2004-12-07  5:52       ` Nizamov Shavkat
2004-12-07  6:02         ` Eugene Prokopiev
2004-12-07  6:15           ` Eugene Prokopiev

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git