Welcome! Log In Create A New Profile

Advanced

Re: Nginx performance data

James Read
January 23, 2022 06:42PM
On Fri, Jan 14, 2022 at 12:47 AM James Read <jamesread5737@gmail.com> wrote:

>
>
> On Sun, Jan 9, 2022 at 12:47 AM Reinis Rozitis <r@roze.lv> wrote:
>
>> > Otherwise why is my application running into such performance limits as
>> mentioned in this question on stackoverflow
>> https://stackoverflow.com/questions/70584121/why-doesnt-my-epoll-based-program-improve-performance-by-increasing-the-number
>> ?
>>
>> You are testing something (public third party dns servers) you have no
>> control over (how can you be sure there are no rate limits?) with third
>> party libraries without actually measuring/showing what takes up your time.
>> That's not the best way to test low level things.
>>
>
> I just succeeded in modifying the wrk source code so that is connects with
> multiple servers rather than just the one. I can confirm that it gets the
> same throughput as with one host. So I take back my comments about there
> being a difference between one host simulating many being different to an
> actual test with many clients. There must be a problem with my epoll
> implementation because the modified wrk codebase works just fine.
>
>
I've done some more playing around with the wrk source code. It turns out
that wrk was reusing connections and for this reason was able to achieve
high throughput. When you change the source code and force wrk to only use
a connection once (the very situation it should be trying to simulate) the
throughput drops off a cliff. I'm beginning to think there may be a problem
with the Linux TCP/IP stack. I haven't tested this on BSD (yet).

James Read


> James Read
>
>
>>
>> I would suggest to at minimum do at least 'strace -c' to see what
>> syscalls takes most of the time.
>>
>> But that's something out of scope of this mailing list.
>>
>> rr
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Nginx performance data

James Read January 04, 2022 07:20PM

Re: Nginx performance data

James Read January 07, 2022 06:38AM

RE: Nginx performance data

Reinis Rozitis January 07, 2022 07:20AM

Re: Nginx performance data

James Read January 07, 2022 07:48AM

RE: Nginx performance data

Reinis Rozitis January 08, 2022 05:42AM

Re: Nginx performance data

James Read January 08, 2022 03:52PM

RE: Nginx performance data

Reinis Rozitis January 08, 2022 07:48PM

Re: Nginx performance data

James Read January 08, 2022 08:38PM

Re: Nginx performance data

James Read January 13, 2022 07:52PM

Re: Nginx performance data

James Read January 23, 2022 06:42PM

Re: Nginx performance data

Anoop Alias January 07, 2022 06:56AM

Re: Nginx performance data

James Read January 07, 2022 08:04AM

Re: Nginx performance data

Anoop Alias January 07, 2022 08:14AM

Re: Nginx performance data

James Read January 07, 2022 08:38AM

Re: Nginx performance data

Maxim Dounin January 07, 2022 06:58PM

Re: Nginx performance data

James Read January 08, 2022 03:56PM

Re: Nginx performance data

Francis Daly January 08, 2022 04:22PM

Re: Nginx performance data

James Read January 08, 2022 05:04PM

Re: Nginx performance data

Aleksandar Lazic January 10, 2022 06:42AM

Re: Nginx performance data

James Read January 10, 2022 12:48PM

Re: Nginx performance data

Paul January 10, 2022 06:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready