Re: cache_disk :

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 24, 2014, at 11:30 , Paul Beckett <paul_beckett@xxxxxxxxxxx> wrote:

> I am seeing the following logged in the apache error log (client IP removed):
> 
> [cache_disk:warn] [pid 26540:tid 139906663675648] (28)No space left on device: [client xxx.xxx.xxx.xxx:56003] AH00725: could not create header file /usr/local/apache/cache/www_http/aptmpd5MAgM
> 
> That disk volume (/usr/local/apache/cache) used for the cache is an 80Gb tmpfs disk. The server has 32Gb physical RAM, 100Gb SWAP space. This is running on a RHEL6 server.
> 
> At the point of the errors only about a quarter of the cache volume was being used: ~20Gb content. The server was reporting 29% memory used, with the remainder all being used for caching/buffering, and 6.5% (6.5Gb) of the swap space being used.
> 
> My expectation of this configuration was:
> Apache would be able to cache up to 80Gb of content. Tmpfs would prioritise the most used stuff to be in RAM, and the least used stuff would be swapped out to disk (swap space). Based on this, all my memory / disk usage would seem to be ok.
> 
> Is there something I'm missing, any other limits imposed by Apache / OS that might be affecting this? Any advice / help would be greatly appreciated.


You may be running out of inodes. Check with df -i.

https://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt

tmpfs has three mount options for sizing:

size:      The limit of allocated bytes for this tmpfs instance. The 
           default is half of your physical RAM without swap. If you
           oversize your tmpfs instances the machine will deadlock
           since the OOM handler will not be able to free that memory.
nr_blocks: The same as size, but in blocks of PAGE_CACHE_SIZE.
nr_inodes: The maximum number of inodes for this instance. The default
           is half of the number of your physical RAM pages, or (on a
           machine with highmem) the number of lowmem RAM pages,
           whichever is the lower.

rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux