LinuxForum.Fans
Тема

Приоритет демона pulseaudio

Автор: fragment 13 сообщений 1263 просмотров
#383852
text

$ cat /etc/pulse/daemon.conf
...
; high-priority = yes
; nice-level = -11

; realtime-scheduling = yes ; realtime-priority = 5

Однако:

text

$ ps -l -e | grep pulseaudio
1 S  1000   730     1  2  80   0 - 85840 SyS_pp ?        00:04:32 pulseaudio

Приоритет - восьмой столбец, показывает 0. Почему так?

#383854

Разве строки не закомментированы точкой с запятой? Или это у Леннарта теперь такая мода - конфиги с точки с запятой начинать? ;-)

#383939

В общем, раскомментирование не дало никакого результата, приоритет так и остался нулевым. Но я помню, что некоторое время назад приоритет был -11, как прописано в конфиге.

Куда ещё можно копнуть?

#383965

Запускать пульсу через nice.

#384020

fragment,
Покажите весь конфиг:
[console]cat /etc/pulse/daemon.conf[/console]

#384022
text
$ cat /etc/pulse/daemon.conf
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.

## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for ## more information. Default values are commented out. Use either ; or # for ## commenting.

; daemonize = no ; fail = yes ; allow-module-loading = yes ; allow-exit = yes ; use-pid-file = yes ; system-instance = no ; local-server-type = user ; enable-shm = yes ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB lock-memory = no ; cpu-limit = no

high-priority = yes nice-level = -11

; realtime-scheduling = yes ; realtime-priority = 5

; exit-idle-time = 20 ; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes ; default-script-file = /etc/pulse/default.pa

; log-target = auto ; log-level = notice ; log-meta = no ; log-time = no ; log-backtrace = 0

; resample-method = copy ; enable-remixing = yes ; enable-lfe-remixing = no

; flat-volumes = yes

; rlimit-fsize = -1 ; rlimit-data = -1 ; rlimit-stack = -1 ; rlimit-core = -1 ; rlimit-as = -1 ; rlimit-rss = -1 ; rlimit-nproc = -1 ; rlimit-nofile = 256 ; rlimit-memlock = -1 ; rlimit-locks = -1 ; rlimit-sigpending = -1 ; rlimit-msgqueue = -1 ; rlimit-nice = 31 ; rlimit-rtprio = 9 ; rlimit-rttime = 1000000

; default-sample-format = s16le ; default-sample-rate = 44100 ; alternate-sample-rate = 48000 ; default-sample-channels = 2 ; default-channel-map = front-left,front-right

; default-fragments = 4 ; default-fragment-size-msec = 25

; enable-deferred-volume = yes ; deferred-volume-safety-margin-usec = 8000 ; deferred-volume-extra-delay-usec = 0

#384024

Хм, у меня -11 приоритет показывает.
Может у вас он использует другой конфиг?

Какая ОС, версии?

#384026
"fragment" написал:
; daemonize = no

Поменяйте на:

text
daemonize = yes
#384027

Поменял, сделал pulseaudio --kill, он сам перезапустился, эффекта никакого.

#384030

fragment,
Покажите:
[console]cat /etc/security/limits.conf[/console]

#384037

verg, там у меня одни комментарии.

text
$ cat /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - a user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#        - the wildcard %, can be also used with %group syntax,
#                 for maxlogin limit
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open files
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit (KB)
#        - maxlogins - max number of logins for this user
#        - maxsyslogins - max number of logins on the system
#        - priority - the priority to run user process with
#        - locks - max number of file locks the user can hold
#        - sigpending - max number of pending signals
#        - msgqueue - max memory used by POSIX message queues (bytes)
#        - nice - max nice priority allowed to raise to values: [-20, 19]
#        - rtprio - max realtime priority
#
#<domain>      <type>  <item>         <value>
#

#* soft core 0 #* hard rss 10000 #@student hard nproc 20 #@faculty soft nproc 20 #@faculty hard nproc 50 #ftp hard nproc 0 #@student - maxlogins 4

# End of file

#384051

А что говорит про приоритет top (htop)?

#384067

"fragment" написал:
там у меня одни комментарии.
ну дык раскомментируйте, только не пишите ";", а просто делайте.

А то такой конфиг как здесь: Приоритет демона pulseaudio демон просто не примет. А такой как здесь Приоритет демона pulseaudio проигнорирует (т.к. там нет строчек вообще).

Сделайте нормальный конфиг, перезагрузитесь, и потом ищите в логах, какие были ошибки при старте демона (в Linux можно просто рестартануть демон, но я не знаю, как это в этой вашей ОС).
Войдите или зарегистрируйтесь, чтобы ответить.