memcached problems...

Marcus Clyne maccaday at gmail.com
Tue Sep 1 18:39:42 MSD 2009


Igor Sysoev wrote:
> On Tue, Sep 01, 2009 at 12:56:19PM +0300, Marcus Clyne wrote:
>
>   
>>> However, as I already said, memcached will not resolve your problem.
>>> You just will waste CPU time and memory. Instead you should tune kernel
>>> to allow cache as much as possible. How much is the host physical memory
>>> and how much is whole size of flv/swf content ?
>>>
>>> I can not say about Linux, but in FreeBSD this can be done by increasing
>>> "sysctl kern.maxvnodes", which is 100,000 vnodes by default. A kernel
>>> stores file pages binding them to a vnode.
>>>  
>>>       
>> On Linux you want to increase either
>>
>> /proc/sys/fs/inode-max    (if you have it - I don't on my Ubunutu 9.04 
>> x64 - not sure why)
>>
>> or
>>
>> /proc/sys/fs/file-max
>>
>> e.g.
>>
>> You can view these by e.g.:
>>
>> cat /proc/sys/fs/inode-max
>>
>> or change them by e.g.:
>>
>> echo 1000000 > /proc/sys/fs/file-max
>>
>> If you use the inode-max option, a number 3-4 x as big as the file-max 
>> would be normal.
>>     
>
> As I understand file-max is number of simultaneously open files by
> applications, including sockets, etc. 
Yes (as I understand it also).
> As to inode-max it seems it has
> been removed in 2.4.
>   
I see.





More information about the nginx mailing list