Date: Mon, 27 Feb 2017 09:37:32 +0800 From: Sepherosa Ziehau <sepherosa@gmail.com> To: Slawa Olhovchenkov <slw@zxy.spb.ru> Cc: "freebsd-net@freebsd.org" <net@freebsd.org> Subject: Re: listening sockets as non sockets Message-ID: <CAMOc5cwd27FMScH-%2B78epocDArtY_M1z14FtoVSRaewHyJE0EQ@mail.gmail.com> In-Reply-To: <CAMOc5cyVKkGMPm840DG7m0eiMjkshzjAvxMgQzPvR0VjQnh4Gg@mail.gmail.com> References: <20170127005251.GM2611@FreeBSD.org> <20170210063024.GE1973@FreeBSD.org> <20170216184903.GF58829@FreeBSD.org> <0858647a-ec3c-1a78-053f-d04397a82d8a@freebsd.org> <20170222232704.GJ8899@FreeBSD.org> <CAMOc5cw7fkrS6LVCwo1hXY459O9p5VdgyfcE4Apkc-kAgQWu7A@mail.gmail.com> <20170223153636.GI15630@zxy.spb.ru> <20170224131349.GJ15630@zxy.spb.ru> <CAMOc5cwcMtHr15dQdaC1DARH2HUXSdHgHA2LOJH-J0YEZk7gww@mail.gmail.com> <20170225155628.GB6035@zxy.spb.ru> <CAMOc5cyVKkGMPm840DG7m0eiMjkshzjAvxMgQzPvR0VjQnh4Gg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 27, 2017 at 9:36 AM, Sepherosa Ziehau <sepherosa@gmail.com> wrote: > On Sat, Feb 25, 2017 at 11:56 PM, Slawa Olhovchenkov <slw@zxy.spb.ru> wrote: >> On Sat, Feb 25, 2017 at 11:09:29PM +0800, Sepherosa Ziehau wrote: >> >>> > Can I use per-connection Lua script (for delays and url generation)? >>> > Not per-thread. I am need to emulate many client connections (about >>> > 10K-40K). >>> > Currently I am have some trouble w/ >20K connections. >>> >>> I didn't try the Lua script. Make sure to low the MSL on the box >>> running wrk, e.g. 10ms. Well, I'd recommend you to run 15K concurrent >>> connections on one testing box. >> >> Thanks! >> Can you explain some more this recomendations? > > If you don't lower MSL, too many sockets will sit in TIMED_WAIT state > on the testing client, which consumes local port space. Local port > space depletion == wrk can do more requests. Hmm, I meant 'wrk cannot do more requests' :) > > 15K concurrent connection on each client box is a heuristic to make > sure local ports can be recycled timely. You need to figure out your > value on the testing box. But, normally, 15K ~ 10K is doable on each > client machine for a given server. > >> >> PS: I am run wrk w/ '--connreqs 600' > > Well, nginx's default setting is 100 requests/connection :). I use > --connreqs 1 to generate "short-lived" connection bomb. > > Thanks, > sephe > > -- > Tomorrow Will Never Die -- Tomorrow Will Never Die
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMOc5cwd27FMScH-%2B78epocDArtY_M1z14FtoVSRaewHyJE0EQ>