Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: Maria Khaydich <maria.khaydich@tarantool.org>,
	tarantool-patches <tarantool-patches@dev.tarantool.org>,
	Alexander Turenko <alexander.turenko@tarantool.org>
Subject: Re: [Tarantool-patches] [PATCH] libev: unlimited select flag did not work on mac
Date: Thu, 13 Feb 2020 01:14:10 +0100	[thread overview]
Message-ID: <efb73971-5e03-0075-38ea-3c36f9b98539@tarantool.org> (raw)
In-Reply-To: <1581360313.873049294@f221.i.mail.ru>

Thanks for the patch! Good catch, interesting case.

On 10/02/2020 19:45, Maria Khaydich wrote:
> Stress tests failed due to lack of fds for mac. The problem was in the
> libev library where DARWIN_UNLIMITED_SELECT flag was defined too late
> to do the trick.

Please, describe in more details. Too late why? Before what should it
be defined? I found this info in a link in the ticket, but I think it
needs to be in the commit message, and in the comment to
_DARWIN_UNLIMITED_SELECT

> Closes #3867, #4673
> 
> ---
> Issues:
> https://github.com/tarantool/tarantool/issues/3867
> https://github.com/tarantool/tarantool/issues/4673 <https://github.com/tarantool/tarantool/issues/3867https://github.com/tarantool/tarantool/issues/4673Branch:https://github.com/tarantool/tarantool/compare/eljashm/gh-4673-replication-flaky-test>
> Branch:
> https://github.com/tarantool/tarantool/compare/eljashm/gh-4673-replication-flaky-test <https://github.com/tarantool/tarantool/issues/3867https://github.com/tarantool/tarantool/issues/4673Branch:https://github.com/tarantool/tarantool/compare/eljashm/gh-4673-replication-flaky-test>
>  
>  third_party/libev/ev.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> diff --git a/third_party/libev/ev.c b/third_party/libev/ev.c
> index 6a2648591..b65a77e0e 100644
> --- a/third_party/libev/ev.c
> +++ b/third_party/libev/ev.c
> @@ -196,6 +196,14 @@
>  # define ECB_NO_SMP 1
>  #endif
>  
> +/* OS X, in its infinite idiocy, actually HARDCODES
> + * a limit of 1024 into their select. Where people have brains,
> + * OS X engineers apparently have a vacuum. Or maybe they were
> + * ordered to have a vacuum, or they do anything for money.
> + * This might help. Or not.
> + */
> +#define _DARWIN_UNLIMITED_SELECT 1
> +
>  #ifndef _WIN32
>  # include <sys/time.h>
>  # include <sys/wait.h>
> @@ -211,14 +219,6 @@
>  # undef EV_AVOID_STDIO
>  #endif
>  
> -/* OS X, in its infinite idiocy, actually HARDCODES
> - * a limit of 1024 into their select. Where people have brains,
> - * OS X engineers apparently have a vacuum. Or maybe they were
> - * ordered to have a vacuum, or they do anything for money.
> - * This might help. Or not.
> - */
> -#define _DARWIN_UNLIMITED_SELECT 1
> -
>  /* this block tries to deduce configuration from header-defined symbols and defaults */
>  
>  /* try to deduce the maximum number of signals on this platform */
> -- 
> 2.24.0
>  
> --
> Maria Khaydich

  reply	other threads:[~2020-02-13  0:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-10 18:45 Maria Khaydich
2020-02-13  0:14 ` Vladislav Shpilevoy [this message]
2020-02-15 17:50 ` Konstantin Osipov
2020-02-15 20:19   ` Alexander Turenko
2020-02-17  7:40     ` Konstantin Osipov
2020-02-17 10:00       ` Alexander Turenko
2020-03-03 14:58         ` [Tarantool-patches] [PATCH] libev: update to version 4.32 Maria Khaydich
2020-04-20  6:30       ` [Tarantool-patches] [PATCH] libev: unlimited select flag did not work on mac Alexander Turenko
2020-04-20  7:59         ` Kirill Yukhin
2020-04-21 17:01         ` Alexander Turenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=efb73971-5e03-0075-38ea-3c36f9b98539@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=alexander.turenko@tarantool.org \
    --cc=maria.khaydich@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH] libev: unlimited select flag did not work on mac' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox