public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
From: John Goerzen <jgoerzen@complete•org>
To: Sergey Matveev <stargrave@stargrave•org>
Cc: nncp-devel@lists.cypherpunks.ru
Subject: Re: Efficiency of caller/toss
Date: Thu, 02 Sep 2021 08:07:49 -0500	[thread overview]
Message-ID: <87zgsvw2fu.fsf@complete.org> (raw)
In-Reply-To: <YTCUCpTnYtmE0viB@stargrave.org>


On Thu, Sep 02 2021, Sergey Matveev wrote:

> *** Sergey Matveev [2021-08-23 17:10]:
>>And they exists. I tried https://github.com/fsnotify/fsnotify -- 
>>no
>>issues (except for 
>>https://github.com/fsnotify/fsnotify/issues/389).
>
> Several days ago I used fsnotify in NNCP:
> http://www.git.cypherpunks.ru/?p=nncp.git;a=commitdiff;h=726c119e6b2340994ada9fbd0e252acd31fb78b5
> Currently no issues and problems discovered. It reduces 
> unnecessary
> directory listing calls. But I have not seen drop of CPU usage. 
> truss
> shows that there appeared huge quantity of nanosleep() calls, 
> that have
> not seen before fsnotify usage. Probably that is the issue 
> related only
> to Go+FreeBSD+kqueue. I have not check that commit under 
> GNU/Linux
> currently.

I tried to test this on Linux with strace, but got certificate 
errors trying to download balloon.  I'm not familiar much with Go 
(if this was written in Rust, I'd contribute code; but since I 
don't have time to learn Go right now, I contribute enthusiasm 
<grin>) and couldn't immediately find a way to solve that issue 
with "go mod vendor" that it told me to run.  I assume you do 
whatever magic is needed when you build the tarballs.

- John

  reply	other threads:[~2021-09-02 13:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-18 13:56 Efficiency of caller/toss John Goerzen
2021-08-18 18:14 ` Sergey Matveev
2021-08-18 19:20   ` John Goerzen
2021-08-18 19:29     ` Sergey Matveev
2021-08-20  2:24       ` John Goerzen
2021-08-20 10:28         ` Sergey Matveev
2021-08-20 19:19           ` John Goerzen
2021-08-21 18:38             ` Sergey Matveev
2021-08-23 14:10           ` Sergey Matveev
2021-09-02  9:06             ` Sergey Matveev
2021-09-02 13:07               ` John Goerzen [this message]
2021-09-02 13:34                 ` Sergey Matveev
2021-08-20 10:23     ` Sergey Matveev