W dniu 16.04.2010 08:38, Jacek Osiecki pisze: > Witam, > > Chciałem dzisiaj sobie zwiększyć ilość max. połączeń memcache'a do 2048. > Ustawiłem w /etc/sysconfig/memcached: > MAXCONN="2048" > > Niestety - wywaliło się: > > Starting memcached (127.0.0.1:11211) > service..........................................................[ FAIL ] > failed to set rlimit for open files. Try running as root or requesting > smaller maxconns value. > > Zajrzałem do /etc/rc.d/init.d/memcached - i widzę takie wywołanie: > > daemon --pidfile $pidfile --user $MEMCACHED_RUNAS \ > /usr/sbin/memcached -d -P $pidfile -l $ip -p $port \ > -m $MEMUSAGE -c $MAXCONN -u $MEMCACHED_RUNAS $MEMCACHED_OPTS > ^^^^^^^^^^^ > Że tak powiem... dlaczego "-c"? Przecież to jest odpowiedzialne za "core > size", a nie za "max. open files" (powinno być -n)...
$ man memcached ... -c <num> Use <num> max simultaneous connections; the default is 1024. ... -n <size> Allocate a minimum of <size> bytes for the item key, value, and flags. The default is 48. If you have a lot of small keys and values, you can get a significant memory efficiency gain with a lower value. If you use a high chunk growth factor (-f option), on the other hand, you may want to increase the size to allow a bigger percentage of your items to fit in the most densely packed (smallest) chunks. .... Na moje oko "-c" jest na swoim miejscu. _______________________________________________ pld-devel-pl mailing list pld-devel-pl@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl