From: Leonid Krivoshein <klark.devel@gmail.com> To: make-initrd@lists.altlinux.org Subject: Re: [make-initrd] Update Date: Fri, 14 Jun 2019 12:51:59 +0300 Message-ID: <718c5dc8-d276-13af-ea9a-2cd3e2d6fae4@gmail.com> (raw) In-Reply-To: <20190614081245.GA8901@Legion-PC.fortress> Привет! 14.06.2019 11:12, Alexey Gladkov пишет: > Привет! > > Я тут переписал ueventd от слова совсем и как следствие изменились и > эвенты и их обработка. > > ueventd теперь работает немного сложнее: > > * Очередей может быть несколько. Их можно создавать и удалять динамически. > * Эвенты в каждой очереди обрабатываются последовательно в блокирующем > режиме т.е. пока текущий обработчик не завершится следующий вызван не > будет. > * Эвенты в разных очередях обрабатываются параллельно. > * Эвенты - это всегда файл с значениями вида 'NAME="VALUE"\n'. > > Сервер обрабатывает эвенты используя обработчики. Они могут быть написаны > либо на shell, либо на lua (меня отговорили от schema). Для второго случая > действует правило: один файл => один обработчик. В lua-файле должна быть > функция main, которая будет вызвана для каждого эвента. Обработчики можно > добавлять/удалять динамически. > > При вызове обработчика эвенты читаются и передаются через переменные > окружения. Если через переменные окружения, значит, эвентам должно быть всё равно, что в этих файлах и в каком они формате? > Соответственно, поменялись все обработчики. В фиче network каждый > интерфейс обрабатывается параллельно. Больше гонок хороших и разных! :-) > На моих тестах я получил прирост к скорости, но буду благодарен за > дополнительное тестирование. Часть без железа прогоню в эти два выходных -- тогда отпишусь. С железом на следующей неделе постараюсь, но пока не обещаю. -- Best regards, Leonid Krivoshein.
next prev parent reply other threads:[~2019-06-14 9:51 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-06-14 8:12 Alexey Gladkov 2019-06-14 9:51 ` Leonid Krivoshein [this message] 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=718c5dc8-d276-13af-ea9a-2cd3e2d6fae4@gmail.com \ --to=klark.devel@gmail.com \ --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