Re: rsync causing disk sleeps and loss of apps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 31 January 2011 17:16:05 Richard wrote:
> On Mon, Jan 31, 2011 at 04:13:33PM +0000, Anne Wilson wrote:
> > On Monday 31 January 2011 14:21:32 Richard wrote:
> > > On Mon, Jan 31, 2011 at 12:28:04PM +0000, Anne Wilson wrote:
> > > > On Monday 31 January 2011 11:39:55 Martin (KDE) wrote:
> > > > > Ane, cann you run "lsof | grep pid-of-rsync" if it hangs (where
> > > > > pid-of-rsync is the pid of a rsync process of course)? This command
> > > > > will give you all files rsync tries to attach (at the time you run
> > > > > lsof). If there are more rsync processes, try grep -E
> > > > > "(pid1|pid2|pid3)" instead of the simple grep.
> > > > 
> > > > I seem to be getting the syntax wrong:
> > > > 
> > > > lsof | grep -E (3180|3181|3183)
> > > > bash: syntax error near unexpected token `('
> > > 
> > > not sure if you tried this or took my previous example literally..
> > > $pid was meant to be replaced by the actual PID of rsync. Did realise
> > > too late that my example was very confusing.
> > > 
> > > Try
> > > 
> > >   ps axf|grep rsync
> > > 
> > > take the PID from it and do
> > > 
> > >   ll /proc/pid-number/fd
> > 
> > No problem - I did realise that.
> > 
> > This command gives me three separate pids, the same three as I listed in
> > the command.  Each of those pids lists a whole set of files that it has,
> > presumably, compared when compiling the file list for transfer.  They
> > all appear to have the same file list.  All of them end with
> > 
> > /home/anne/WebPages /mnt/server_home/anne/
> 
> not sure if we are talking about the same thing, I was expecting something
> like
> $ ll /proc/9661/fd
> total 0
> lrwx------ 1 rz rz 64 2011-01-31 18:09 0 -> /dev/pts/7
> lrwx------ 1 rz rz 64 2011-01-31 18:09 1 -> /dev/pts/7
> lrwx------ 1 rz rz 64 2011-01-31 18:09 2 -> /dev/pts/7
> lr-x------ 1 rz rz 64 2011-01-31 18:09 3 -> /home/rz/Mail/kde-lists
> 
> Is your rsync having all files open at the same time? Can't really
> immagine.. but never have debugged rsync.
> 
> Another method to debug is to start the rsync command with
> "strace -o rsync-debug.log -f rsync arguments"
> 
> You can look at the debug log with any viewer or do something like
> "grep open rsync-debug.log"
> and post the last 30 lines here.
> 
I'm giving you more than 30 because I don't know how much of the ending is due 
to my action in killing the process:

tail -50 rsync-debug.log
3236  <... select resumed> )            = ? ERESTARTNOHAND (To be restarted)
3235  <... select resumed> )            = ? ERESTARTNOHAND (To be restarted)
3236  --- SIGINT (Interrupt) @ 0 (0) ---
3235  --- SIGINT (Interrupt) @ 0 (0) ---
3236  gettimeofday( <unfinished ...>
3235  gettimeofday( <unfinished ...>
3236  <... gettimeofday resumed> {1296658927, 336394}, NULL) = 0
3235  <... gettimeofday resumed> {1296658927, 336386}, NULL) = 0
3236  select(0, NULL, NULL, NULL, {0, 400000} <unfinished ...>
3235  select(0, NULL, NULL, NULL, {0, 400000} <unfinished ...>
3236  <... select resumed> )            = 0 (Timeout)
3235  <... select resumed> )            = 0 (Timeout)
3235  gettimeofday({1296658927, 737109}, NULL) = 0
3236  gettimeofday( <unfinished ...>
3235  rt_sigaction(SIGUSR1, {SIG_IGN, [], 0},  <unfinished ...>
3236  <... gettimeofday resumed> {1296658927, 737284}, NULL) = 0
3235  <... rt_sigaction resumed> NULL, 8) = 0
3235  rt_sigaction(SIGUSR2, {SIG_IGN, [], 0},  <unfinished ...>
3236  rt_sigaction(SIGUSR1, {SIG_IGN, [], 0},  <unfinished ...>
3235  <... rt_sigaction resumed> NULL, 8) = 0
3236  <... rt_sigaction resumed> NULL, 8) = 0
3235  waitpid(3236,  <unfinished ...>
3236  rt_sigaction(SIGUSR2, {SIG_IGN, [], 0},  <unfinished ...>
3235  <... waitpid resumed> 0xbfebf66c, WNOHANG) = 0
3235  getpid( <unfinished ...>
3236  <... rt_sigaction resumed> NULL, 8) = 0
3236  kill(3237, SIGUSR1 <unfinished ...>
3235  <... getpid resumed> )            = 3235
3236  <... kill resumed> )              = 0
3235  kill(3236, SIGUSR1 <unfinished ...>
3236  select(4, [3], [1], [1], {60, 0} <unfinished ...>
3235  <... kill resumed> )              = 0
3236  <... select resumed> )            = ? ERESTARTNOHAND (To be restarted)
3235  write(2, "rsync error: received SIGINT, SI"..., 89 <unfinished ...>
3236  --- SIGUSR1 (User defined signal 1) @ 0 (0) ---
3235  <... write resumed> )             = 89
3236  select(4, [3], [1], [1], {59, 999994} <unfinished ...>
3235  write(2, "\n", 1)                 = 1
3235  exit_group(20)                    = ?
3236  <... select resumed> )            = 1 (out [1], left {59, 999171})
3236  write(1, "]\0\0\nrsync error: received SIGINT"..., 97) = -1 EPIPE 
(Broken pipe)
3236  --- SIGPIPE (Broken pipe) @ 0 (0) ---
3236  write(2, "rsync: writefd_unbuffered failed"..., 90) = 90
3236  write(2, "\n", 1)                 = 1
3236  rt_sigaction(SIGUSR1, {SIG_IGN, [], 0}, NULL, 8) = 0
3236  rt_sigaction(SIGUSR2, {SIG_IGN, [], 0}, NULL, 8) = 0
3236  gettimeofday({1296658927, 741650}, NULL) = 0
3236  select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
3236  gettimeofday({1296658927, 842121}, NULL) = 0
3236  exit_group(20)                    = ?

Anne
-- 
New to KDE Software? - get help from http://userbase.kde.org

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
kde mailing list
kde@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/kde
New to KDE4? - get help from http://userbase.kde.org

[Index of Archives]     [KDE Users]     [Fedora General Discussion]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Coolkey]     [Yum Users]     [Yosemite Forum]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux