[DTrace-devel] [PATCH v2 4/4] EINTR: respect switchrate in the core polling loop

Kris Van Hees kris.van.hees at oracle.com
Wed Nov 8 05:39:56 UTC 2023


Yes, this patch is not needed in my opinion.  There is nothing wrong with
the consumer loop getting interrupted.

On Mon, Nov 06, 2023 at 11:43:31AM +0000, Nick Alcock via DTrace-devel wrote:
> On 2 Nov 2023, Eugene Loh via DTrace-devel spake thusly:
> 
> > On 11/2/23 09:42, Nick Alcock wrote:
> >
> >> On 1 Nov 2023, Eugene Loh via DTrace-devel told this:
> >>
> >>> Again, I think MICROSEC is irrelevant;  NANOSEC/MILLISEC is more
> >>> meaningful (and it's what is done for converting from interval to
> >>> timeout_msec).
> >> I honestly don't understand why that would be more *readable*, given
> >> that you're talking about a denominator under a denominator here.
> >> I can change it if you insist...
> >
> > There are no microsecs anywhere.  We want 1,000,000 -- not because we
> > care about microsecs but because we want to convert between nanosecs
> > and millisecs, which is why the existing code used NANOSEC/MILLISEC to
> > convert.
> 
> Ah. I wasn't reading it that way at all :) OK, that's clearer. (I
> already adjusted things to work that way.)
> 
> >> I think this may be your terminal environment or something. Signals with
> >> no handler are left unchanged across fork and exec, so if your
> >> controlling shell is ignoring SIGWINCH for some reason, DTrace will also
> >> end up ignoring it. Mine isn't doing any such thing. The Sig* entries in
> >> /proc/self/status before you start runtest might be informative...
> >
> > Okay.  I don't know.
> >
> > $ grep Sig /proc/self/status
> > SigQ:    0/30539
> > SigPnd:    0000000000000000
> > SigBlk:    0000000000000000
> > SigIgn:    0000000000000000
> > SigCgt:    0000000000000400
> 
> Doesn't look like anything is blocking it. Strange. I'll stop wasting
> your time with this not-intended-to-go-in patch anyway :)
> 
> -- 
> NULL && (void)
> 
> _______________________________________________
> DTrace-devel mailing list
> DTrace-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/dtrace-devel



More information about the DTrace-devel mailing list