From: Alexey Gladkov <legion@altlinux.ru>
To: make-initrd@lists.altlinux.org
Subject: [make-initrd] Update
Date: Fri, 14 Jun 2019 10:12:45 +0200
Message-ID: <20190614081245.GA8901@Legion-PC.fortress> (raw)
Привет!
Я тут переписал ueventd от слова совсем и как следствие изменились и
эвенты и их обработка.
ueventd теперь работает немного сложнее:
* Очередей может быть несколько. Их можно создавать и удалять динамически.
* Эвенты в каждой очереди обрабатываются последовательно в блокирующем
режиме т.е. пока текущий обработчик не завершится следующий вызван не
будет.
* Эвенты в разных очередях обрабатываются параллельно.
* Эвенты - это всегда файл с значениями вида 'NAME="VALUE"\n'.
Сервер обрабатывает эвенты используя обработчики. Они могут быть написаны
либо на shell, либо на lua (меня отговорили от schema). Для второго случая
действует правило: один файл => один обработчик. В lua-файле должна быть
функция main, которая будет вызвана для каждого эвента. Обработчики можно
добавлять/удалять динамически.
При вызове обработчика эвенты читаются и передаются через переменные
окружения.
Соответственно, поменялись все обработчики. В фиче network каждый
интерфейс обрабатывается параллельно.
На моих тестах я получил прирост к скорости, но буду благодарен за
дополнительное тестирование.
--
Rgrds, legion
next reply other threads:[~2019-06-14 8:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-14 8:12 Alexey Gladkov [this message]
2019-06-14 9:51 ` Leonid Krivoshein
2019-06-14 12:29 ` Alexey Gladkov
2019-06-14 17:58 ` Leonid Krivoshein
2019-06-16 12:22 ` Alexey Gladkov
2019-06-16 17:38 ` Leonid Krivoshein
2019-06-15 17:57 ` Leonid Krivoshein
2019-06-15 18:42 ` Leonid Krivoshein
2019-06-17 8:30 ` Alexey Gladkov
2019-06-19 15:50 ` Alexey Gladkov
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=20190614081245.GA8901@Legion-PC.fortress \
--to=legion@altlinux.ru \
--cc=make-initrd@lists.altlinux.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
Make-initrd development discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/make-initrd/0 make-initrd/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 make-initrd make-initrd/ http://lore.altlinux.org/make-initrd \
make-initrd@lists.altlinux.org make-initrd@lists.altlinux.ru make-initrd@lists.altlinux.com
public-inbox-index make-initrd
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.make-initrd
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git