* [devel] crontabs.git
@ 2008-10-29 5:53 Vladimir V. Kamarzin
2008-10-29 7:25 ` Alexey Gladkov
2008-10-29 8:36 ` Dmitry V. Levin
0 siblings, 2 replies; 7+ messages in thread
From: Vladimir V. Kamarzin @ 2008-10-29 5:53 UTC (permalink / raw)
To: devel
Hi
http://git.altlinux.org/people/legion/packages/crontabs.git?p=crontabs.git;a=commitdiff;h=21a57dad7f535f0f494604d151a9e9ed6d1b48f0
--- /dev/null
+++ b/cronjobs.sysconfig
@@ -0,0 +1,5 @@
+# Set the scheduling priority for a cronjob. nice(1)
+PRIORITY=-20
+
+# Set the IO scheduling priority for a cronjob. Require ionice(1).
+IO_PRIORITY=3
Почему выставляется приоритет -20? В исходном предложении было наоборот
понижение приоритета крон-задач, чтобы они ни в коем случае не ставили раком
машину.
--
vvk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] crontabs.git
2008-10-29 5:53 [devel] crontabs.git Vladimir V. Kamarzin
@ 2008-10-29 7:25 ` Alexey Gladkov
2008-10-29 8:36 ` Dmitry V. Levin
1 sibling, 0 replies; 7+ messages in thread
From: Alexey Gladkov @ 2008-10-29 7:25 UTC (permalink / raw)
To: ALT Linux Team development discussions
Vladimir V. Kamarzin wrote:
> Почему выставляется приоритет -20?
Потому что опечатка в ходе тестирования. Спасибо. Исправлено.
> В исходном предложении было наоборот
С исходным предложением не ознакомлен.
> понижение приоритета крон-задач, чтобы они ни в коем случае не ставили раком
> машину.
Разумеется.
--
Rgrds, legion
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] crontabs.git
2008-10-29 5:53 [devel] crontabs.git Vladimir V. Kamarzin
2008-10-29 7:25 ` Alexey Gladkov
@ 2008-10-29 8:36 ` Dmitry V. Levin
2008-10-29 10:33 ` Alexey Gladkov
1 sibling, 1 reply; 7+ messages in thread
From: Dmitry V. Levin @ 2008-10-29 8:36 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 734 bytes --]
On Wed, Oct 29, 2008 at 10:53:52AM +0500, Vladimir V. Kamarzin wrote:
> http://git.altlinux.org/people/legion/packages/crontabs.git?p=crontabs.git;a=commitdiff;h=21a57dad7f535f0f494604d151a9e9ed6d1b48f0
>
> --- /dev/null
> +++ b/cronjobs.sysconfig
> @@ -0,0 +1,5 @@
> +# Set the scheduling priority for a cronjob. nice(1)
> +PRIORITY=-20
> +
> +# Set the IO scheduling priority for a cronjob. Require ionice(1).
> +IO_PRIORITY=3
>
> Почему выставляется приоритет -20?
Опечатка, наверное.
> В исходном предложении было наоборот
> понижение приоритета крон-задач, чтобы они ни в коем случае не ставили раком
> машину.
Я думаю, что лучше обучить этой технике /etc/init.d/crond или даже сам crond.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] crontabs.git
2008-10-29 8:36 ` Dmitry V. Levin
@ 2008-10-29 10:33 ` Alexey Gladkov
2008-10-29 10:38 ` Alexey Gladkov
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Alexey Gladkov @ 2008-10-29 10:33 UTC (permalink / raw)
To: ALT Linux Team development discussions
Dmitry V. Levin wrote:
> Я думаю, что лучше обучить этой технике /etc/init.d/crond или даже сам crond.
Мне кажется что в /etc/init.d/crond этим лимитам совсем не место.
crond должен работать с нормальными лимитами.
Про сам crond я думал, но мне показалось, что там лимитам не место.
Этот сервер должен запускать задачи по расписанию. И он это делает
хорошо. Остальное не его дело и это правильно.
Так как run-cronjob запускается через crontab, то можно варьировать
лимиты для каждого пользователя, под которым запускается задача (пока
не реализовано, но это возможно). Правда не знаю, насколько это
востребовано.
--
Rgrds, legion
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] crontabs.git
2008-10-29 10:33 ` Alexey Gladkov
@ 2008-10-29 10:38 ` Alexey Gladkov
2008-10-29 12:06 ` Dmitry V. Levin
2008-10-30 23:30 ` Michael Shigorin
2 siblings, 0 replies; 7+ messages in thread
From: Alexey Gladkov @ 2008-10-29 10:38 UTC (permalink / raw)
To: ALT Linux Team development discussions
Alexey Gladkov wrote:
> Про сам crond я думал, но мне показалось, что там лимитам не место.
> Этот сервер должен запускать задачи по расписанию. И он это делает
> хорошо. Остальное не его дело и это правильно.
Разумеется, это на твоё усмотрение, если считаешь, что данный подход
плох, то могу реализовать лимиты в crond. Просто это будет несколько
дольше :)
--
Rgrds, legion
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] crontabs.git
2008-10-29 10:33 ` Alexey Gladkov
2008-10-29 10:38 ` Alexey Gladkov
@ 2008-10-29 12:06 ` Dmitry V. Levin
2008-10-30 23:30 ` Michael Shigorin
2 siblings, 0 replies; 7+ messages in thread
From: Dmitry V. Levin @ 2008-10-29 12:06 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 789 bytes --]
On Wed, Oct 29, 2008 at 01:33:52PM +0300, Alexey Gladkov wrote:
> Dmitry V. Levin wrote:
> >Я думаю, что лучше обучить этой технике /etc/init.d/crond или даже сам
> >crond.
>
> Мне кажется что в /etc/init.d/crond этим лимитам совсем не место.
> crond должен работать с нормальными лимитами.
Не факт. Чем отличаются процессы, запускаемые crond, от процессов,
запускаемых, скажем, sshd? Тем, что процессы, запускаемые crond, всегда
неинтерактивные. А неинтерактивным процессам логично назначить
неинтерактивный приоритет.
> Про сам crond я думал, но мне показалось, что там лимитам не место.
> Этот сервер должен запускать задачи по расписанию. И он это делает
> хорошо. Остальное не его дело и это правильно.
Тогда зачем у crond есть параметр -l?
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] crontabs.git
2008-10-29 10:33 ` Alexey Gladkov
2008-10-29 10:38 ` Alexey Gladkov
2008-10-29 12:06 ` Dmitry V. Levin
@ 2008-10-30 23:30 ` Michael Shigorin
2 siblings, 0 replies; 7+ messages in thread
From: Michael Shigorin @ 2008-10-30 23:30 UTC (permalink / raw)
To: ALT Linux Team development discussions
On Wed, Oct 29, 2008 at 01:33:52PM +0300, Alexey Gladkov wrote:
> >Я думаю, что лучше обучить этой технике /etc/init.d/crond или
> >даже сам crond.
> Мне кажется что в /etc/init.d/crond этим лимитам совсем не
> место. crond должен работать с нормальными лимитами.
Место, но очень умеренное -- IIRC что-то вроде 10 там уже есть.
Ставить idle prio чохом определённо нельзя.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-10-30 23:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-29 5:53 [devel] crontabs.git Vladimir V. Kamarzin
2008-10-29 7:25 ` Alexey Gladkov
2008-10-29 8:36 ` Dmitry V. Levin
2008-10-29 10:33 ` Alexey Gladkov
2008-10-29 10:38 ` Alexey Gladkov
2008-10-29 12:06 ` Dmitry V. Levin
2008-10-30 23:30 ` Michael Shigorin
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