is at rambler-co.ru
Tue Sep 1 14:45:10 MSD 2009
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)
> 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. As to inode-max it seems it has
been removed in 2.4.
> AFAIK this will reset upon reboot, so you'd probably want to add it to a
> startup script.
More information about the nginx