|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Alex L Demidov 2:5051/30.31 25 May 2000 18:02:06 To : pasha@sumy.net Subject : Re: Поможите Squid валится -------------------------------------------------------------------------------- > Alex L Demidov wrote: >> >> faleev@ksaba.kcn.ru wrote: >> > Reply-To: faleev@ksaba.kcn.ru >> >> > Привет всем ! >> >> > поможите валится с ошибкой >> >> > Startup: Tue May 23 17:33:19 MSD 2000 >> > FATAL: file_map_allocate: Exceeded filemap limit >> > Startup: Tue May 23 17:34:44 MSD 2000 >> >> попробуй уменьшить store_avg_object_size > или поиграться с параметрами cache_dir на предмет увеличение level-2. нет. (c) http://www.squid-cache.org/Doc/FAQ/FAQ-11.html#ss11.25 11.25 FATAL: file_map_allocate: Exceeded filemap limit See the next question. 11.26 FATAL: You've run out of swap file numbers. Note: The information here applies to version 2.2 and earlier. Squid keeps an in-memory bitmap of disk files that are available for use, or are being used. The size of this bitmap is determined at run name, based on two things: the size of your cache, and the average (mean) cache object size. The size of your cache is specified in squid.conf, on the cache_dir lines. The mean object size can also be specified in squid.conf, with the 'store_avg_object_size' directive. By default, Squid uses 13 Kbytes as the average size. When allocating the bitmaps, Squid allocates this many bits: 2 * cache_size / store_avg_object_size So, if you exactly specify the correct average object size, Squid should have 50% filemap bits free when the cache is full. You can see how many filemap bits are being used by looking at the 'storedir' cache manager page. It looks like this: Store Directory #0: /usr/local/squid/cache First level subdirectories: 4 Second level subdirectories: 4 Maximum Size: 1024000 KB Current Size: 924837 KB Percent Used: 90.32% Filemap bits in use: 77308 of 157538 (49%) Flags: Now, if you see the ``You've run out of swap file numbers'' message, then it means one of two things: 1. You've found a Squid bug. 2. Your cache's average file size is much smaller than the 'store_avg_object_size' value. To check the average file size of object currently in your cache, look at the cache manager 'info' page, and you will find a line like: Mean Object Size: 11.96 KB To make the warning message go away, set 'store_avg_object_size' to that value (or lower) and then restart Squid. 11.27 I am using up over 95% of the filemap bits?!! Note: The information here is current for version 2.3 Calm down, this is now normal. Squid now dynamically allocates filemap bits based on the number of objects in your cache. You won't run out of them, we promise. -- With best regards, Alex L. Demidov. --- tin/pre-1.4-19990517 ("Psychonaut") (UNIX) (Linux/2.2.12-20 (i686)) * Origin: Tahiti Island Consulting (2:5051/30.31@fidonet) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/895670d7d784.html, оценка из 5, голосов 10
|