From: Sergey Vlasov <vsu@altlinux.ru>
To: sisyphus@altlinux.ru
Cc: Kernel Maintainers Team <kernel@packages.altlinux.org>
Subject: [sisyphus] Re: 2.4.20-alt9 reiserfs locks
Date: Mon, 18 Aug 2003 20:49:57 +0400
Message-ID: <20030818204957.5eee2fb2.vsu@altlinux.ru> (raw)
In-Reply-To: <20030818204351.33ea9c12.vsu@altlinux.ru>
On Mon, 18 Aug 2003 20:43:51 +0400
Sergey Vlasov <vsu@altlinux.ru> wrote:
> On Mon, 18 Aug 2003 18:56:23 +0300 (EEST)
> Andrei Bulava <raven98@ukr.net> wrote:
>
> > On Mon, 18 Aug 2003, Grigory Batalov wrote:
> >
> > > On Mon, 18 Aug 2003 08:17:30 +0400
> > > Grigory Batalov <grisxa@mail.ru> wrote:
> > >
> >
> > <skip>
> >
> > > А вот при доступе в INBOX
> > > запускается imapd и ждёт разрешения блокировки (?)
> > > /var/mail/bga
> > > от procmail.
> >
> > Аналогичная проблема c 2.4.20-alt9-up: /var на reiserfs, imapd у
> > пользователя засыпает в ожидании разрешения блокировки от
> > procmail.
> >
> > Но! Фишка в том, что проблема (race condition?) возникает ещё до
> > попытки забрать почту по imap, а точнее -
> >
> > # fuser -v /var/spool/mail/jinxed-user
> >
> > показывает два процесса procmail, каждый из которых после
> > таймаута пишет в /var/log/maillog:
> >
> > temporary failure. Command output: procmail: Terminating
> > prematurely whilst waiting for a kernel-lock
> >
> > А проблема с imapd - всего лишь самое очевидное последствие того,
> > что два procmail'a не отпускают /var/spool/mail/jinxed-user.
> >
> > На 2.4.20-alt7-up & 2.4.20-alt8-up описанной выше проблемы не
> > возникало, правда 2.4.20-alt8-up работало слишком мало (5,5
> > суток), но 2.4.20-alt7-up - с 31 мая до выхода 2.4.20-alt8-up.
> >
> > На 2.4.20-alt9-up ситуация повторялась дважды за последние 5
> > суток. В первый раз хватило fuser -k /var/spool/mail/jinxed-user;
> > во второй - пришлось делать reboot :-/ После третьего раза
> > придётся откатываться на 2.4.20-alt7-up, хотя лично меня такой
> > откат стремает...
> >
> > P.S. Получил первое наглядное доказательство небезосновательности
> > предубеждённости людей против reiserfs - как всегда не вовремя
> > ;-(((
>
> Как я и подозревал, ситуация воспроизвелась и на xfs:
>
> $ for ((i=0; i < 32; ++i)) do echo "Test $i" | mail -s "Test $i" vsu; done
>
> Пришло 23 письма, после чего наблюдается такая же картина:
>
> $ /usr/sbin/lsof /var/mail/vsu
> COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
> procmail 2830 vsu 4w REG 3,6 10238 21251086 /var/spool/mail/vsu
> procmail 2831 vsu 4w REG 3,6 10238 21251086 /var/spool/mail/vsu
>
> $ strace -v -p 2830
> fcntl64(4, F_SETLKW, ptrace: umoven: Input/output error
> {...} <unfinished ...>
> $ strace -v -p 2831
> fcntl64(4, F_SETLKW, ptrace: umoven: Input/output error
> {...} <unfinished ...>
При этом:
$ cat /proc/locks
1: FLOCK ADVISORY READ 2737 03:06:25614777 0 EOF c12554b4 c0220570 c1255348 00000000 c12554c0
2: FLOCK ADVISORY READ 2724 03:06:25614776 0 EOF c1255344 c12554b8 c12555cc 00000000 c1255350
3: POSIX ADVISORY WRITE 2826 03:06:21691476 9792 EOF c12555c8 c1255348 c1255234 00000000 c12555d4
4: FLOCK ADVISORY WRITE 1932 03:06:4346877 0 EOF c1255230 c12555cc c125517c 00000000 c125523c
5: POSIX ADVISORY WRITE 1540 03:06:12590440 0 EOF c1255178 c1255234 c1255120 00000000 c1255184
6: FLOCK ADVISORY WRITE 1455 03:06:12583054 0 EOF c125511c c125517c c12551d8 00000000 c1255128
7: POSIX ADVISORY WRITE 1442 03:06:12583053 0 EOF c12551d4 c1255120 c0220570 00000000 c12551e0
Процесс 2724 (ps axl):
4 42 2724 1932 9 0 4868 1452 1447c2 S ? 0:00 local -t unix
Процесс 2826, который якобы заблокировал этот файл через POSIX lock
(fcntl) на запись, отсутствует.
next prev parent reply other threads:[~2003-08-18 16:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-18 4:17 [sisyphus] " Grigory Batalov
2003-08-18 4:41 ` Grigory Batalov
2003-08-18 15:56 ` Andrei Bulava
2003-08-18 16:11 ` [sisyphus] " Sergey Vlasov
2003-08-18 16:43 ` Sergey Vlasov
2003-08-18 16:49 ` Sergey Vlasov [this message]
2003-08-19 6:01 ` [sisyphus] " Aleksandr Blokhin
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=20030818204957.5eee2fb2.vsu@altlinux.ru \
--to=vsu@altlinux.ru \
--cc=kernel@packages.altlinux.org \
--cc=sisyphus@altlinux.ru \
/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
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git