Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: barthelemy@crans.org (Sébastien Barthélémy)
Subject: [lttng-dev] lttng create freezes sometimes
Date: Fri, 27 Jan 2012 18:25:11 +0100	[thread overview]
Message-ID: <CAPkDDd6_v+yxyoQYPmD8AzSui1OMsOMPBwmfQVkyrN3TZwvO=Q@mail.gmail.com> (raw)
In-Reply-To: <4F22D626.5050002@efficios.com>

Hello,

2012/1/27 David Goulet <dgoulet at efficios.com>:
> On 12-01-26 08:19 AM, S?bastien Barth?l?my wrote:
>> It works, thanks! I can run the following without any failure:
>>
>> $ for i in {1..100}; do killall lttng-sessiond; sleep 1; echo "$i";
>> lttng create;done
>>
>> However, if I remove the sleep, I get 7 other failures.
>> Likely race conditions between the kill and the subsequent start,
>> which is an unlikely use pattern.
>
> Hmmmm... yes looks like a race. I can't get any errors on my side... I even bump
> it up to 1000 and still nothing...
>
> It seems your system is quite a challenge for us! :)

It is a 500MHz AMD Geode processor. I'm pretty sure your workstation has more
horsepower ;)


> This is most irregular since chmod() is *always* done after a mkdir, a socket
> creation or shm open....

I imagine the scheduler might not agree with our definition of after ;).

Wouldn't the following be possible?

lttng-sessiond1 is running. .lttng exists
lttng-sessiond2 creates .lttng (as it already exists, this is a no-op)
lttng-sessiond1 get killed. It deletes .lttng
lttng-sessiond2 tries to chmod .lttng, which does not exist anymore

>> 60
>> Spawning a session daemon
>> rm: cannot remove `/home/nao/.lttng': Directory not empty
>> Session auto-20120126-122706 created.
>> Traces will be written in /home/nao/lttng-traces/auto-20120126-122706
>
> Again here, we use "rm -rf" for now ... how can you get this kind of error
> message with "-rf" ....?

I dunno...

> Looking at the rest, you have a bind() error, Bad file descriptor and more "no
> such file or dir...". Is your open files limit is very low? Maybe there is a
> couple of place where we don't handle well the maximum open files error.

The limit is 1024. Quite usual no?



  reply	other threads:[~2012-01-27 17:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAPkDDd70XMLs8suH2TFXB84-tPMePvfdrN+ZdY-WWvhi7n19Dw@mail.gmail.com>
     [not found] ` <4F049932.6070709@gmail.com>
     [not found]   ` <CAPkDDd4d-CyaiU5cnP6K9TMSMWy+dnExnpeJ3hm1f8Z6R7X1_w@mail.gmail.com>
     [not found]     ` <4F0B43F6.8040008@polymtl.ca>
     [not found]       ` <CAPkDDd5nqftfHa5Zi-Swucbi6=757y=uWutRVBF0t-7Z1HwV-w@mail.gmail.com>
     [not found]         ` <CAPkDDd6Z9_1bzjCtjHztu9Ew1Aby0ACGh=KgUPK+ZqmPH8StmQ@mail.gmail.com>
     [not found]           ` <20120125144157.GA3754@Krystal>
2012-01-26 13:19             ` Sébastien Barthélémy
2012-01-27 16:51               ` David Goulet
2012-01-27 17:25                 ` Sébastien Barthélémy [this message]
2012-01-27 17:35                   ` David Goulet

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='CAPkDDd6_v+yxyoQYPmD8AzSui1OMsOMPBwmfQVkyrN3TZwvO=Q@mail.gmail.com' \
    --to=barthelemy@crans.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