<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><FONT class="Apple-style-span" face="Courier">Memcached folks,</FONT><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">You may already know about the problem I'm going to describe.  I'm new around here, and I searched the archives but couldn't find any reference to this problem, so here goes...</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">The help text describes the "-n" option for setting the minimum slab size.  From code inspection, the case statement in main() supports it:</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">...</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">        case 'n':</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">            settings.chunk_size = atoi(optarg);</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">            if (settings.chunk_size == 0) {</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">                fprintf(stderr, "Chunk size must be greater than 0\n");</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">                return 1;</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">            }</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">            break;</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">...</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">However, the call to getopt above the case does not include it:</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">while ((c = getopt(argc, argv, "bp:s:U:m:Mc:khirvdl:u:P:f:s:")) != -1) {</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">I also checked your subversion repository on the web and it also does not include it in the latest at <A href="http://code.sixapart.com/svn/memcached/trunk/server/memcached.c">http://code.sixapart.com/svn/memcached/trunk/server/memcached.c</A>:</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">while ((c = getopt(argc, argv, "bp:s:U:m:Mc:khirvdl:u:P:f:s:")) != -1) {</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Since getopt doesn't include the option, it obviously doesn't work:</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">$ memcached -n 80 -vv</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">memcached: invalid option -- n</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Illegal argument "?"</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">$ memcached  -vv</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class   1: chunk size     80 perslab 13107</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class   2: chunk size    100 perslab 10485</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class   3: chunk size    128 perslab  8192</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class   4: chunk size    160 perslab  6553</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class   5: chunk size    200 perslab  5242</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class   6: chunk size    252 perslab  4161</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class   7: chunk size    316 perslab  3318</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class   8: chunk size    396 perslab  2647</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class   9: chunk size    496 perslab  2114</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  10: chunk size    620 perslab  1691</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  11: chunk size    776 perslab  1351</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  12: chunk size    972 perslab  1078</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  13: chunk size   1216 perslab   862</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  14: chunk size   1520 perslab   689</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  15: chunk size   1900 perslab   551</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  16: chunk size   2376 perslab   441</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  17: chunk size   2972 perslab   352</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  18: chunk size   3716 perslab   282</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  19: chunk size   4648 perslab   225</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  20: chunk size   5812 perslab   180</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  21: chunk size   7268 perslab   144</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  22: chunk size   9088 perslab   115</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  23: chunk size  11360 perslab    92</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  24: chunk size  14200 perslab    73</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  25: chunk size  17752 perslab    59</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  26: chunk size  22192 perslab    47</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  27: chunk size  27740 perslab    37</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  28: chunk size  34676 perslab    30</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  29: chunk size  43348 perslab    24</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  30: chunk size  54188 perslab    19</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  31: chunk size  67736 perslab    15</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  32: chunk size  84672 perslab    12</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  33: chunk size 105840 perslab     9</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  34: chunk size 132300 perslab     7</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  35: chunk size 165376 perslab     6</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  36: chunk size 206720 perslab     5</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  37: chunk size 258400 perslab     4</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  38: chunk size 323000 perslab     3</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  39: chunk size 403752 perslab     2</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">slab class  40: chunk size 504692 perslab     2</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">&lt;3 server listening</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">SIGINT handled.</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Just thought this might be nice to have fixed, as it's a bit difficult to fine tune allocation without this option!</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Thanks,</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Eli Bingham</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Senior Software Engineer</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Pandora Media, Inc.</FONT></DIV></BODY></HTML>