public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Arkady <arkady.miasnikov@gmail.com>
To: Daniel Doron <danielmeirdoron@gmail.com>
Cc: systemtap@sourceware.org
Subject: Re: No output from trace file after a few hours
Date: Thu, 15 Jun 2017 11:05:00 -0000	[thread overview]
Message-ID: <CANA-60qX659-jTbKu75wga6oSLktTEya-2fdeS1Jb-4=xFM1gQ@mail.gmail.com> (raw)
In-Reply-To: <CANA-60oB-kzF0YQhJjht-Hhrv73O-0j-PtJdUF7HQg+F7Hbv8A@mail.gmail.com>

This works fine

sudo stap -D MAXSKIPPED=0 -D MAXTRYLOCK=1000 -D TRYLOCKDELAY=100  -F
-o ./test.log -S 1,2  test.stp

On Thu, Jun 15, 2017 at 2:03 PM, Arkady <arkady.miasnikov@gmail.com> wrote:
> STAP simply quits in a couple of seconds
>
> sudo stap -F -o ./test.log -S 1,2  test.stp
> 94089
> ps -ef | grep -v "grep" | grep  94089
>
> On Thu, Jun 15, 2017 at 1:53 PM, Arkady <arkady.miasnikov@gmail.com> wrote:
>> Interesting. I have reproduced the problem by running two tight bash
>> loops simultaneously
>>
>> sudo stap -F -o ./test.log -S 1,2  test.stp
>> while [ 1 ];do ls > /dev/null;done &
>> while [ 1 ];do echo -en "\033[0;0H";ls -l | grep "test.log";echo -en
>> "\033[0;0H";done;
>>
>> Linux centos6 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC
>> 2016 x86_64 x86_64 x86_64 GNU/Linux
>>
>>
>>
>> On Thu, Jun 15, 2017 at 11:59 AM, Daniel Doron
>> <danielmeirdoron@gmail.com> wrote:
>>> On that specific kernel about 8-10 hours.
>>> On my machine with latest kernel, been running for 24 hours.
>>> I need to check other distros.
>>>
>>> sudo stap -v -F -m mymodule test.stp
>>>
>>> On Thu, Jun 15, 2017 at 11:26 AM, Arkady <arkady.miasnikov@gmail.com> wrote:
>>>> Do you do something like
>>>>
>>>> sudo stap -F -o ./test.log -S 1,2  test.stp ?
>>>>
>>>> On Thu, Jun 15, 2017 at 11:25 AM, Daniel Doron
>>>> <danielmeirdoron@gmail.com> wrote:
>>>>> On that specific kernel about 8-10 hours.
>>>>> On my machine with latest kernel, been running for 24 hours.
>>>>> I need to check other distros.
>>>>>
>>>>> On Jun 15, 2017 11:18, "Arkady" <arkady.miasnikov@gmail.com> wrote:
>>>>>>
>>>>>> How long time it runs for you?
>>>>>>
>>>>>> On Thu, Jun 15, 2017 at 10:38 AM, Daniel Doron
>>>>>> <danielmeirdoron@gmail.com> wrote:
>>>>>> > Systemtap translator/driver (version 2.9/0.164, rpm 2.9-7.el6)
>>>>>> > Copyright (C) 2005-2015 Red Hat, Inc. and others
>>>>>> > This is free software; see the source for copying conditions.
>>>>>> > enabled features: AVAHI LIBRPM LIBSQLITE3 NLS NSS TR1_UNORDERED_MAP
>>>>>> >
>>>>>> > On Thu, Jun 15, 2017 at 10:37 AM, Daniel Doron
>>>>>> > <danielmeirdoron@gmail.com> wrote:
>>>>>> >> BTW kernel version: 2.6.32-431.el6.x86_64
>>>>>> >>
>>>>>> >> On Thu, Jun 15, 2017 at 10:36 AM, Daniel Doron
>>>>>> >> <danielmeirdoron@gmail.com> wrote:
>>>>>> >>> if you mean that the kernel version does not get upgraded, then yes.
>>>>>> >>>
>>>>>> >>> On Thu, Jun 15, 2017 at 10:34 AM, Daniel Doron
>>>>>> >>> <danielmeirdoron@gmail.com> wrote:
>>>>>> >>>> Sorry, I do not know what you mean by that...
>>>>>> >>>>
>>>>>> >>>> On Thu, Jun 15, 2017 at 10:32 AM, Arkady <arkady.miasnikov@gmail.com>
>>>>>> >>>> wrote:
>>>>>> >>>>> Do you have the kernel version pinned?
>>>>>> >>>>>
>>>>>> >>>>> On Thu, Jun 15, 2017 at 10:12 AM, Arkady
>>>>>> >>>>> <arkady.miasnikov@gmail.com> wrote:
>>>>>> >>>>>> Please send the stap script
>>>>>> >>>>>>
>>>>>> >>>>>> On Thu, Jun 15, 2017 at 10:10 AM, Daniel Doron
>>>>>> >>>>>> <danielmeirdoron@gmail.com> wrote:
>>>>>> >>>>>>> Hi,
>>>>>> >>>>>>>
>>>>>> >>>>>>> I built my module to probe a few system calls and functions.
>>>>>> >>>>>>> Nothing
>>>>>> >>>>>>> fancy, no big work in it, just prints some data. Then I wrote a
>>>>>> >>>>>>> simple
>>>>>> >>>>>>> python script to read data directly off the
>>>>>> >>>>>>> /sys/kernel/debug/systemtap/mymodule/trace0 file (of course
>>>>>> >>>>>>> running as
>>>>>> >>>>>>> sudo)
>>>>>> >>>>>>> I run stap in Flight recorder mode.
>>>>>> >>>>>>> After a few hours (varies from 8 to 20) I stop getting any output
>>>>>> >>>>>>> from
>>>>>> >>>>>>> the module...
>>>>>> >>>>>>> Any idea how to check why that is?
>>>>>> >>>>>>> dmesg does not report anything unusual...
>>>>>> >>>>>>>
>>>>>> >>>>>>> Thanks.
>>>>>> >>>>>>> Daniel.

  reply	other threads:[~2017-06-15 11:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-15  7:10 Daniel Doron
2017-06-15  7:13 ` Arkady
2017-06-15  7:33   ` Arkady
2017-06-15  7:34     ` Daniel Doron
2017-06-15  7:37       ` Daniel Doron
2017-06-15  7:37         ` Daniel Doron
2017-06-15  7:38           ` Daniel Doron
2017-06-15  8:18             ` Arkady
     [not found]               ` <CAFwN=+w2u+QpZyPavfxf2i+QsrhaHbSnRcGzYLPOpLwK4TA4vA@mail.gmail.com>
2017-06-15  8:26                 ` Arkady
2017-06-15  8:59                   ` Daniel Doron
2017-06-15 10:54                     ` Arkady
2017-06-15 11:04                       ` Arkady
2017-06-15 11:05                         ` Arkady [this message]
2017-06-15 11:13                           ` Daniel Doron
2017-06-15 11:32                             ` Arkady
2017-06-15 11:59                               ` Arkady
2017-06-15 12:01                                 ` Daniel Doron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANA-60qX659-jTbKu75wga6oSLktTEya-2fdeS1Jb-4=xFM1gQ@mail.gmail.com' \
    --to=arkady.miasnikov@gmail.com \
    --cc=danielmeirdoron@gmail.com \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).