* [Patch suggestion] Probability flag for 32 bit syscalls
@ 2013-09-24 18:36 Ildar Muslukhov
2013-09-24 18:50 ` Dave Jones
0 siblings, 1 reply; 7+ messages in thread
From: Ildar Muslukhov @ 2013-09-24 18:36 UTC (permalink / raw)
To: trinity; +Cc: Dave Jones
Hi everyone,
In the children/random-syscalls.c file (function choose_syscall_table)
there is a FIXME section that right now disables 32 bit version of
syscall if a 64 bit version is present and enabled.
// FIXME: I forgot why this got disabled. Revisit.
// if (rand() % 100 < 10)
//
Just want to clear this one out. Should it be a command line
parameter? Something like -P 50 (for 50% probability, lets say of 32
bit). If so, what should be a default behaviour when the parameter is
not present 50/50 or 0/100 as it is right now.
-Ildar
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Patch suggestion] Probability flag for 32 bit syscalls
2013-09-24 18:36 [Patch suggestion] Probability flag for 32 bit syscalls Ildar Muslukhov
@ 2013-09-24 18:50 ` Dave Jones
2013-09-24 19:03 ` Ildar Muslukhov
0 siblings, 1 reply; 7+ messages in thread
From: Dave Jones @ 2013-09-24 18:50 UTC (permalink / raw)
To: Ildar Muslukhov; +Cc: trinity
On Tue, Sep 24, 2013 at 11:36:53AM -0700, Ildar Muslukhov wrote:
> Hi everyone,
>
> In the children/random-syscalls.c file (function choose_syscall_table)
> there is a FIXME section that right now disables 32 bit version of
> syscall if a 64 bit version is present and enabled.
>
> // FIXME: I forgot why this got disabled. Revisit.
> // if (rand() % 100 < 10)
> //
>
> Just want to clear this one out. Should it be a command line
> parameter? Something like -P 50 (for 50% probability, lets say of 32
> bit). If so, what should be a default behaviour when the parameter is
> not present 50/50 or 0/100 as it is right now.
So that got disabled a long time ago. Back in May of last year in commit
2d4de3c15fa80c42cccb1863fbd7879ef5aeaf38.
I'm not sure that ever got fixed up. It might be worth doing some long
runs to see if it's still a problem.
Dave
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Patch suggestion] Probability flag for 32 bit syscalls
2013-09-24 18:50 ` Dave Jones
@ 2013-09-24 19:03 ` Ildar Muslukhov
2013-09-24 19:21 ` Dave Jones
0 siblings, 1 reply; 7+ messages in thread
From: Ildar Muslukhov @ 2013-09-24 19:03 UTC (permalink / raw)
To: Dave Jones; +Cc: trinity
Is there any specific steps to reproduce this behaviour? Or just
calling random syscalls will do it?
Ildar
On Tue, Sep 24, 2013 at 11:50 AM, Dave Jones <davej@redhat.com> wrote:
> On Tue, Sep 24, 2013 at 11:36:53AM -0700, Ildar Muslukhov wrote:
> > Hi everyone,
> >
> > In the children/random-syscalls.c file (function choose_syscall_table)
> > there is a FIXME section that right now disables 32 bit version of
> > syscall if a 64 bit version is present and enabled.
> >
> > // FIXME: I forgot why this got disabled. Revisit.
> > // if (rand() % 100 < 10)
> > //
> >
> > Just want to clear this one out. Should it be a command line
> > parameter? Something like -P 50 (for 50% probability, lets say of 32
> > bit). If so, what should be a default behaviour when the parameter is
> > not present 50/50 or 0/100 as it is right now.
>
> So that got disabled a long time ago. Back in May of last year in commit
> 2d4de3c15fa80c42cccb1863fbd7879ef5aeaf38.
>
> I'm not sure that ever got fixed up. It might be worth doing some long
> runs to see if it's still a problem.
>
> Dave
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Patch suggestion] Probability flag for 32 bit syscalls
2013-09-24 19:03 ` Ildar Muslukhov
@ 2013-09-24 19:21 ` Dave Jones
2013-09-25 20:25 ` Ildar Muslukhov
0 siblings, 1 reply; 7+ messages in thread
From: Dave Jones @ 2013-09-24 19:21 UTC (permalink / raw)
To: Ildar Muslukhov; +Cc: trinity
On Tue, Sep 24, 2013 at 12:03:28PM -0700, Ildar Muslukhov wrote:
> Is there any specific steps to reproduce this behaviour? Or just
> calling random syscalls will do it?
yeah, nothing special. I've been running it here for the last half hour
without seeing anything weird so far. ( I changed the rand to be < 50 just
to exercise it more).
I'll leave it run for the afternoon, and see if anything falls out.
Dave
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Patch suggestion] Probability flag for 32 bit syscalls
2013-09-24 19:21 ` Dave Jones
@ 2013-09-25 20:25 ` Ildar Muslukhov
2013-09-25 20:32 ` Dave Jones
0 siblings, 1 reply; 7+ messages in thread
From: Ildar Muslukhov @ 2013-09-25 20:25 UTC (permalink / raw)
To: Dave Jones; +Cc: trinity
Any luck with the test?
On Tue, Sep 24, 2013 at 12:21 PM, Dave Jones <davej@redhat.com> wrote:
> On Tue, Sep 24, 2013 at 12:03:28PM -0700, Ildar Muslukhov wrote:
> > Is there any specific steps to reproduce this behaviour? Or just
> > calling random syscalls will do it?
>
> yeah, nothing special. I've been running it here for the last half hour
> without seeing anything weird so far. ( I changed the rand to be < 50 just
> to exercise it more).
>
> I'll leave it run for the afternoon, and see if anything falls out.
>
> Dave
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Patch suggestion] Probability flag for 32 bit syscalls
2013-09-25 20:25 ` Ildar Muslukhov
@ 2013-09-25 20:32 ` Dave Jones
2013-09-25 20:43 ` Ildar Muslukhov
0 siblings, 1 reply; 7+ messages in thread
From: Dave Jones @ 2013-09-25 20:32 UTC (permalink / raw)
To: Ildar Muslukhov; +Cc: trinity
On Wed, Sep 25, 2013 at 01:25:21PM -0700, Ildar Muslukhov wrote:
> Any luck with the test?
Nothing specifically problematic with 32bit syscalls, but I've got a bunch
of changes that I'll push out over the next day or so as a result of yesterdays
run. I found a bunch of cases where we end up with all the children stuck
reading fd's, and ignoring sigkill after the sigalarm has gone off. Still tweaking it.
Dave
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Patch suggestion] Probability flag for 32 bit syscalls
2013-09-25 20:32 ` Dave Jones
@ 2013-09-25 20:43 ` Ildar Muslukhov
0 siblings, 0 replies; 7+ messages in thread
From: Ildar Muslukhov @ 2013-09-25 20:43 UTC (permalink / raw)
To: Dave Jones; +Cc: trinity
OK, then I will wait till that push to submit my other patches.
On Wed, Sep 25, 2013 at 1:32 PM, Dave Jones <davej@redhat.com> wrote:
> On Wed, Sep 25, 2013 at 01:25:21PM -0700, Ildar Muslukhov wrote:
> > Any luck with the test?
>
> Nothing specifically problematic with 32bit syscalls, but I've got a bunch
> of changes that I'll push out over the next day or so as a result of yesterdays
> run. I found a bunch of cases where we end up with all the children stuck
> reading fd's, and ignoring sigkill after the sigalarm has gone off. Still tweaking it.
>
> Dave
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-09-25 20:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-24 18:36 [Patch suggestion] Probability flag for 32 bit syscalls Ildar Muslukhov
2013-09-24 18:50 ` Dave Jones
2013-09-24 19:03 ` Ildar Muslukhov
2013-09-24 19:21 ` Dave Jones
2013-09-25 20:25 ` Ildar Muslukhov
2013-09-25 20:32 ` Dave Jones
2013-09-25 20:43 ` Ildar Muslukhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox