lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJfpegumZ1RQLBCtbrOiOAT9ygDtDThpySwb8yCpWGBu1fRQmw@mail.gmail.com>
Date:   Tue, 7 Dec 2021 13:44:49 +0100
From:   Miklos Szeredi <miklos@...redi.hu>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     Ingo Molnar <mingo@...hat.com>, quic_stummala@...cinc.com,
        linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
        quic_pkondeti@...cinc.com, quic_sayalil@...cinc.com,
        quic_aiquny@...cinc.com, quic_zljing@...cinc.com,
        quic_blong@...cinc.com, quic_richardp@...cinc.com,
        quic_cdevired@...cinc.com,
        Pradeep P V K <quic_pragalla@...cinc.com>
Subject: Re: [PATCH V1] fuse: give wakeup hints to the scheduler

On Tue, 7 Dec 2021 at 11:42, Peter Zijlstra <peterz@...radead.org> wrote:
>
> On Tue, Dec 07, 2021 at 11:20:59AM +0100, Miklos Szeredi wrote:

> > That may be good for fuse as the data is indeed shared.  It would be
> > even better if the woken task had already a known affinity to this
> > CPU, since that would mean thread local data wouldn't have to be
> > migrated each time...   So I'm not sure sync wakeup alone is worth it,
> > needs real life benchmarking.
>
> Hard affinities have other down-sides.. occasional migrations shouldn't
> be a problem, constant migrations are bad.

Currently fuse readers are sleeping in
wait_event_interruptible_exclusive().  wake_up_interruptible_sync()
will pick the first thread in the queue and wake that up.  That will
likely result in migration, right?

What would be much nicer, is to look at all the threads on the waitq
and pick one that previously ran on the current CPU if there's one.
Could this be implemented?

Thanks,
Miklos

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ