From: "Dmitry V. Levin" <ldv@fandra.org> To: mandrake-russian@linuxteam.iplabs.ru Subject: Re: [mdk-re] nice Date: Thu Feb 22 03:20:11 2001 Message-ID: <20010222032232.D3656@LDV.fandra.org> (raw) In-Reply-To: <200102211428.f1LESvV48698@www3.mailru.com>; from rromas@mailru.com on Wed, Feb 21, 2001 at 05:28:57PM +0300 [-- Attachment #1: Type: text/plain, Size: 1561 bytes --] On Wed, Feb 21, 2001 at 05:28:57PM +0300, Roman S wrote: > > Подскажите, пожалуйста, можно ли сделать так, чтобы > некоторые программы > > запускались с приоритетом по умолчанию отличным от > 0, скажем 20? > > Т.е. хочется уменьшить приоритет, дабы они "по дну" > ползали? > Сделать для этих "некоторых" скрипты-врапперы, > nice -20 <progname> $@ exec nice -20 "$@" > Поднять же приоритет может только суперпользователь, > можно провернуть фокус с sudo (см. инструкцию в части > nopasswd). > Например в моей системе cron at и anacron, соотв. все > задачи которые пилят под ними "придавлены", а esd - > "приподнят". > > Можно так же установить базовый приоритет > пользователю... > > Но главная заповедь многозадачной системы - не > повышать приоритет тому, что должно работать быстрее, > а понизить тому, что мешает. Это лучше скажется на > итоговой работе системы. Точно. > Повышать приоритет лучше только тем задачам, которые > перманентно находятся в ожидании, активируясь изредка. Тоже не надо - kernel scheduler сделает это сам. Разве что realtime, но это уже совсем другая история. Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@fandra.org Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html IPLabs Linux Team http://linux.iplabs.ru Fandra Project http://www.fandra.org +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
prev parent reply other threads:[~2001-02-22 3:20 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-02-21 17:28 Roman S 2001-02-21 21:26 ` Yury Zotov 2001-02-21 21:45 ` Roman S 2001-02-22 3:20 ` Dmitry V. Levin [this message]
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=20010222032232.D3656@LDV.fandra.org \ --to=ldv@fandra.org \ --cc=mandrake-russian@linuxteam.iplabs.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 Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git