public inbox for trinity@vger.kernel.org
 help / color / mirror / Atom feed
From: "Toralf Förster" <toralf.foerster@gmx.de>
To: trinity@vger.kernel.org
Cc: Dave Jones <davej@redhat.com>
Subject: Re: trinity-main is in an endless loop
Date: Sat, 13 Apr 2013 18:44:14 +0200	[thread overview]
Message-ID: <51698B5E.5090501@gmx.de> (raw)
In-Reply-To: <20130413145849.GA32144@redhat.com>

On 04/13/2013 04:58 PM, Dave Jones wrote:
> On Sat, Apr 13, 2013 at 03:26:10PM +0200, Toralf Förster wrote:
>  > tl;dr;
>  > 
>  > 
>  > Running a recent trinity within a user mode linux guest (3.9-rc6-...) without parameter -N
>  > yields into an endless loop of the trinity-main process - it occupies 100% CPU time
>  > 
>  > The last lines of the command line
>  > 
>  > trinity ~ #  ps axf | grep trinity
>  >   910 ?        SNs    0:01  |       \_ bash -c pkill -9 trinity; cd ~; T=/mnt/n22/v/victims; mkdir -p $T; for i in $(seq -w 1 100); do touch $T/f$i; mkdir $T/d$i; done; cd $T; trinity --children 4 --victims $T -x mremap -r -q
>  >  1115 ?        SN     0:00  |           \_ trinity --children 4 --victims /mnt/n22/v/victims -x mremap -r -q
>  >  1116 ?        SN     0:00  |               \_ trinity --children 4 --victims /mnt/n22/v/victims -x mremap -r -q
>  >  1117 ?        RN   257:20  |               \_ trinity --children 4 --victims /mnt/n22/v/victims -x mremap -r -q
>  >  1359 ?        SNL    0:01  |                   \_ trinity --children 4 --victims /mnt/n22/v/victims -x mremap -r -q
>  >  1377 ?        SNL    0:00  |                   \_ trinity --children 4 --victims /mnt/n22/v/victims -x mremap -r -q
>  >  1392 ?        SNL    0:00  |                   \_ trinity --children 4 --victims /mnt/n22/v/victims -x mremap -r -q
>  >  1395 ?        SN     0:00  |                   \_ trinity --children 4 --victims /mnt/n22/v/victims -x mremap -r -q
>  >  1744 pts/0    S+     0:00          \_ grep --colour=auto trinity
> 
> ok, all 4 children are stuck sleeping. it would be interesting to get sysrq-T backtraces of those to see where
> they're sleeping. 
> 
> just to be sure, make sure they aren't sleeping/waking up very quickly by doing a tail -f *.log
> If that's not making any progress, we're definitly hung.

The culprit of the hung are these directory permissions I fear :

# ls -l /mnt/n22/v/
total 0
d--------- 102 tfoerste users 4040 Apr 13 17:16 victims

and because I start trinity from within the directory "victims"
all processes just stuck b/c trinity locked out itself.

IMO trinity shouldn't change the directory permissions above its own log
files - and/or should not change the perms of the victims directory



-- 
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3

       reply	other threads:[~2013-04-13 16:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <51695CF2.2010108@gmx.de>
     [not found] ` <20130413145849.GA32144@redhat.com>
2013-04-13 16:44   ` Toralf Förster [this message]
2013-04-13 17:14   ` trinity-main is in an endless loop Toralf Förster

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=51698B5E.5090501@gmx.de \
    --to=toralf.foerster@gmx.de \
    --cc=davej@redhat.com \
    --cc=trinity@vger.kernel.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