Re: [PATCH] selftests/timers/posix_timers: reimplement check_timer_distribution()

2024-04-09 Thread Dmitry Vyukov
On Tue, 9 Apr 2024 at 13:12, Oleg Nesterov wrote: > > On 04/09, Thomas Gleixner wrote: > > > > The discussion started about running new tests on older kernels. As this > > is a feature and not a bug fix that obviously fails on older kernels. > > OK, I see... please see below. > > > So something

Re: [PATCH] selftests/timers/posix_timers: reimplement check_timer_distribution()

2024-04-08 Thread Dmitry Vyukov
On Sat, 6 Apr 2024 at 17:12, Oleg Nesterov wrote: > > Dmitry, Thomas, > > To simplify the review I've attached the code with this patch applied below. > > Yes, this changes the "semantics" of check_timer_distribution(), perhaps it > should be renamed. > > But I do not see a better approach, and

Re: [PATCH v6 1/2] posix-timers: Prefer delivery of signals to the current thread

2024-04-04 Thread Dmitry Vyukov
On Thu, 4 Apr 2024 at 15:45, Oleg Nesterov wrote: > > Perhaps I am totally confused, but. > > On 04/04, Dmitry Vyukov wrote: > > > > On Wed, 3 Apr 2024 at 17:43, Thomas Gleixner wrote: > > > > > > > Why distribution_thread() can't simply exit i

Re: [PATCH v6 1/2] posix-timers: Prefer delivery of signals to the current thread

2024-04-04 Thread Dmitry Vyukov
On Wed, 3 Apr 2024 at 17:43, Thomas Gleixner wrote: > > On Wed, Apr 03 2024 at 17:03, Oleg Nesterov wrote: > > On 04/03, Thomas Gleixner wrote: > >> The test if fragile as hell as there is absolutely no guarantee that the > >> signal target distribution is as expected. The expectation is based on

Re: [PATCH v6 1/2] posix-timers: Prefer delivery of signals to the current thread

2024-04-02 Thread Dmitry Vyukov
On Mon, 1 Apr 2024 at 22:17, John Stultz wrote: > > On Thu, Mar 16, 2023 at 5:30 AM Marco Elver wrote: > > > > From: Dmitry Vyukov > > > > POSIX timers using the CLOCK_PROCESS_CPUTIME_ID clock prefer the main > > thread of a thread group for si