Welcome! Log In Create A New Profile

Advanced

Re: memcached problems...

Marcus Clyne
September 02, 2009 05:49PM
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.
Subject Author Posted

memcached problems...

InterNetX - Jürgen Gotteswinter August 31, 2009 03:07PM

Re: memcached problems...

Davy Campano August 31, 2009 03:20PM

Re: memcached problems...

Igor Sysoev September 02, 2009 05:49PM

Re: memcached problems...

Marcus Clyne September 02, 2009 05:49PM

Re: memcached problems...

Igor Sysoev September 02, 2009 05:49PM

Re: memcached problems...

Marcus Clyne September 02, 2009 05:49PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 117
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready