From: Michael Pozhidaev <msp@altlinux.ru> To: ALT Devel discussion list <devel@altlinux.ru> Subject: Re: [devel] Просьба потестировать Date: Sun, 21 Mar 2004 16:14:44 +0600 Message-ID: <405D6B14.6080209@altlinux.ru> (raw) In-Reply-To: <20040321094631.GA9610@wrars-comp.wrarsdomain> Andrey Rahmatullin пишет: > On Sun, Mar 21, 2004 at 03:03:10PM +0600, Michael Pozhidaev wrote: >> Программа ждёт в качестве первого параметра запуска какой-нибудь >> wav-файл, длительность которого больше хотя бы 1 секунды. На >> консоль программа выводит количество успешных запуском процесса >> для воспроизведения звука. У меня таких запусков не больше 120. > $ ulimit -u > 128 > $ ./1 auth.wav > [...] > 94 > 95 > /usr/bin/play: fork: Resource temporarily unavailable > 96 > /usr/bin/play: fork: Resource temporarily unavailable > $ ulimit -u 256 > $ ulimit -u > 256 > $ ./1 auth.wav > [...] > 221 > 222 > /usr/bin/play: fork: Resource temporarily unavailable > 223 > /usr/bin/play: fork: Resource temporarily unavailable > Но ведь процессы-то не одновременно работают? Не одновременно. Каждую секунду порождается процесс, который будет корнем процессной группы, и процесс для вызова play. Перед тем, как выполнить очередной раз эту операцию, вызывается killpg(pid, SIGKILL), который убивает полностью процессную группу от предыдущего шага. Таким образом происходит последовательное порождение и завершение процессов и ничего оставаться не должно, я думаю. Почему эту операцию можно выполнить только установленное количество раз, я понять не могу. > man setrlimit: > RLIMIT_NPROC > The maximum number of processes that can be created for the real > user ID of the calling process. Upon encountering this limit, > fork() fails with the error EAGAIN. > > Так созданных или созданных одновременно? Похоже, что созданных вообще за время работы программы в главном процессе. Но какой смысл накладывать такие ограничения? -- Best wishes. Michael Pozhidaev. E-mail: msp@altlinux.ru. Tomsk state university. Computer science department. (http://www.inf.tsu.ru)
next prev parent reply other threads:[~2004-03-21 10:14 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-03-21 7:20 Michael Pozhidaev 2004-03-21 8:24 ` Andrey Rahmatullin 2004-03-21 9:03 ` Michael Pozhidaev 2004-03-21 9:46 ` Andrey Rahmatullin 2004-03-21 10:14 ` Michael Pozhidaev [this message] 2004-03-21 11:48 ` {Spam?} " Sergey Vlasov 2004-03-21 13:13 ` Michael Pozhidaev 2004-03-22 9:22 ` Sergey Pinaev 2004-03-22 10:58 ` Michael Pozhidaev 2004-03-22 11:13 ` Sergey Pinaev 2004-03-22 12:55 ` Michael Pozhidaev 2004-03-22 13:48 ` Sergey Pinaev 2004-03-22 14:18 ` Michael Pozhidaev
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=405D6B14.6080209@altlinux.ru \ --to=msp@altlinux.ru \ --cc=devel@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 Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git