Configuration 'quickscan'

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

studio32

Re: Configuration 'quickscan'

Post by studio32 »

thanks.

My default looks now:

Code: Select all

# IRQ thread service names
# (space separated list, from higher to lower priority).
RTIRQ_NAME_LIST="rtc snd usb i8042"

# Highest priority.
RTIRQ_PRIO_HIGH=90

# Priority decrease step.
RTIRQ_PRIO_DECR=5

# Whether to reset all IRQ threads to SCHED_OTHER.
RTIRQ_RESET_ALL=0

# On kernel configurations that support it,
# which services should be NOT threaded
# (space separated list).
RTIRQ_NON_THREADED="rtc snd"

# Process names which will be forced to the
# highest realtime priority range (99-91)
# (space separated list, from highest to lower priority).
# RTIRQ_HIGH_LIST="softirq-timer"

thorgal
Established Member
Posts: 739
Joined: Mon Apr 07, 2008 6:04 pm

Re: Configuration 'quickscan'

Post by thorgal »

if you don't have a USB audio device, remove usb from the first list.
studio32

Re: Configuration 'quickscan'

Post by studio32 »

ok, I removed usb.

has this anything to do with /etc/security/limits.conf?
thorgal
Established Member
Posts: 739
Joined: Mon Apr 07, 2008 6:04 pm

Re: Configuration 'quickscan'

Post by thorgal »

the necessary changes in /etc/security/limits.conf have to do with your user's right to start processes with the SCHED_FIFO bit. Failing to do so will prevent you from accessing / using RT processes. The rtirq stuff is about prioritizing some processes rather than others and even setting SCHED_OTHER to processes that are not important for audio work.

SO these are two different things :
- on one hand, it's about user's rights to use RT processes
- on the other hand, establish a priority hierarchy for processes at stake.
User avatar
philip888
Established Member
Posts: 14
Joined: Sun Aug 03, 2008 7:39 pm
Location: Utah,USA
Contact:

Re: Configuration 'quickscan'

Post by philip888 »

I have a question concerning the audio groups.

This is the output I get from the script after making some suggested changes.

Code: Select all

DAW-888:~$ sudo perl /home/philip/Desktop/realTimeConfigQuickScan.pl
Finding current kernel config... found /boot/config-2.6.24-23-rt
Checking for Ingo Molnar's Real-Time Preemption... found - good.
Checking for tickless time support... not found - good.
Checking for 1000hz clock... found - good.
Checking for High Resolution Timers... found - good.
Checking filesystem types... ok.
Checking tmpfs mounted on /tmp..  ok.
Checking filesystem 'noatime' parameter... 
** Warning: / does not have the 'noatime' parameter set
   For more information, see http://wiki.linuxmusicians.com/doku.php?id=system_configuration#filesystems
** Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks
Checking the ability to prioritize processes with (re)nice... yes - good.
Checking whether you're in the 'audio' group... no.
** add yourself to the audio group with 'adduser $USER audio'
Checking for multiple 'audio' groups... no - good.
Checking sysctl settings:
- checking inotify max_user_watches... >= 524288 - good.
Checking for resource-intensive background processes... none found - good. 
On the auiod group check it says.

Code: Select all

Checking whether you're in the 'audio' group... no.
** add yourself to the audio group with 'adduser $USER audio
When I run

Code: Select all

DAW-888:~$ sudo adduser philip audio
I get.

Code: Select all

DAW-888:~$ sudo adduser philip audioThe user `philip' is already a member of `audio'.
And again after I add myself to the audio group.

Code: Select all

DAW-888:~$ sudo perl /home/philip/Desktop/realTimeConfigQuickScan.pl
Finding current kernel config... found /boot/config-2.6.24-23-rt
Checking for Ingo Molnar's Real-Time Preemption... found - good.
Checking for tickless time support... not found - good.
Checking for 1000hz clock... found - good.
Checking for High Resolution Timers... found - good.
Checking filesystem types... ok.
Checking tmpfs mounted on /tmp..  ok.
Checking filesystem 'noatime' parameter... 
** Warning: / does not have the 'noatime' parameter set
   For more information, see http://wiki.linuxmusicians.com/doku.php?id=system_configuration#filesystems
** Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks
Checking the ability to prioritize processes with (re)nice... yes - good.
[color=#000000]Checking whether you're in the 'audio' group... no.
** add yourself to the audio group with 'adduser $USER audio'[/color]
Checking for multiple 'audio' groups... no - good.
Checking sysctl settings:
- checking inotify max_user_watches... >= 524288 - good.
Checking for resource-intensive background processes... none found - good.
When I run "id" I get this.

Code: Select all

AW-888:~$ id
uid=1000(philip) gid=1000(philip) groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(fuse),109(lpadmin),115(admin),1000(philip)

What am I missing here.

Thanks

Philip
User avatar
raboof
Established Member
Posts: 1855
Joined: Tue Apr 08, 2008 11:58 am
Location: Deventer, NL
Has thanked: 50 times
Been thanked: 74 times
Contact:

Re: Configuration 'quickscan'

Post by raboof »

philip888 wrote:after I add myself to the audio group.

Code: Select all

Checking whether you're in the 'audio' group... no.
** add yourself to the audio group with 'adduser $USER audio'[/quote]

Hmm, have you tried logging out and back in?
User avatar
philip888
Established Member
Posts: 14
Joined: Sun Aug 03, 2008 7:39 pm
Location: Utah,USA
Contact:

Re: Configuration 'quickscan'

Post by philip888 »

raboof wrote:
philip888 wrote:after I add myself to the audio group.

Code: Select all

Checking whether you're in the 'audio' group... no.
** add yourself to the audio group with 'adduser $USER audio'[/quote]

Hmm, have you tried logging out and back in?[/quote]


Thanks for the reply.

Yes I have but I get the same result.

Any other suggestions?

Philip
User avatar
raboof
Established Member
Posts: 1855
Joined: Tue Apr 08, 2008 11:58 am
Location: Deventer, NL
Has thanked: 50 times
Been thanked: 74 times
Contact:

Re: Configuration 'quickscan'

Post by raboof »

philip888 wrote:
raboof wrote:Hmm, have you tried logging out and back in?
Yes I have but I get the same result. Any other suggestions?
what is the output of the 'groups' command?
User avatar
philip888
Established Member
Posts: 14
Joined: Sun Aug 03, 2008 7:39 pm
Location: Utah,USA
Contact:

Re: Configuration 'quickscan'

Post by philip888 »

raboof wrote:
philip888 wrote:
raboof wrote:Hmm, have you tried logging out and back in?
Yes I have but I get the same result. Any other suggestions?
what is the output of the 'groups' command?

Code: Select all

philip@ubuntuDAW-888:~$ groups
philip adm dialout cdrom floppy audio dip video plugdev fuse lpadmin admin
Havoc
Established Member
Posts: 179
Joined: Sat Oct 04, 2008 6:57 pm

Re: Configuration 'quickscan'

Post by Havoc »

I ran it today and if I may believe it I can't do audio with this pc...but I have been without much problems since years.

I do wonder where the settings from the wiki come from and if they aren't taken out of context. Like I fear that some things are related and should be checked dependend, not independend (inotify vs filesystem).
studio32

Re: Configuration 'quickscan'

Post by studio32 »

The script helped me to help someone, nice :)
But it should also be improved imo, maybe we can discuss it some more here and maybe you can post it on LAD mailinglist to improve it.
perl ./Bureaublad/realTimeConfigQuickScan.pl
Finding current kernel config... found /boot/config-2.6.28-3-rt
Checking for Ingo Molnar's Real-Time Preemption... found - good.
Checking for high-resolution timers... found - good.
Checking for Generic PCI bus-master DMA support... not found.
** Kernel without Generic PCI bus-master DMA support
For more information, see:
- http://lowlatency.linuxaudio.org
are you sure DMA support is needed, why?
Checking for 1000hz clock... found - good.
Checking for High Resolution Timers... found - good.
Checking filesystem types...
** Warning: do not use /media/disk for audio files.
fuseblk is not a good filesystem type for realtime use and large files.
For more information, see http://wiki.linuxmusicians.com/doku.php ... ilesystems
/media/disk are cdrom and mounted devices?
Checking tmpfs mounted on /tmp.. not found.
** Warning: no tmpfs partition mounted on /tmp
For more information, see:
- http://wiki.linuxmusicians.com/doku.php ... tion#tmpfs
- http://lowlatency.linuxaudio.org
ok
Checking filesystem 'noatime' parameter...
** Warning: / does not have the 'noatime' parameter set
For more information, see http://wiki.linuxmusicians.com/doku.php ... ilesystems
** Warning: /media/disk does not have the 'noatime' parameter set
For more information, see http://wiki.linuxmusicians.com/doku.php ... ilesystems
AFAIK using noatime should be a suggestion in the script, not a warning that something is wrong, e.g. relatime should work good too right?
** Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks
Checking the ability to prioritize processes with (re)nice... nice: kan beleefdheidswaarde niet instellen: Toegang geweigerd
Do you have to run the script as root or user. When you run it as root you have problems detecting the audio groups..

** Could not assign a -5 nice value. Set up limits.conf.
For more information, see http://wiki.linuxmusicians.com/doku.php ... imits.conf
I have seen a lot different nice values.... maybe the script could give an range and/ or an default setting (from jackaudio.org)?

Checking whether you're in the 'audio' group... no.
** add yourself to the audio group with 'adduser $USER audio'
Checking for multiple 'audio' groups... no - good.
ok
Checking access to the real-time clock... not readable.
** Warning: /dev/rtc found, but not readable.
** make /dev/rtc readable by the 'audio' group
For more information, see http://wiki.linuxmusicians.com/doku.php ... time_clock
Checking sysctl settings:
- checking inotify max_user_watches... too small.
** /proc/sys/fs/inotify/max_user_watches is smaller than 524288
** increase it by adding 'fs.inotify.max_user_watches = 524288' to /etc/sysctl.conf and rebooting
For more information, see http://wiki.linuxmusicians.com/doku.php ... ysctl.conf
Checking for resource-intensive background processes... none found - good.
I'm not sure what /dev/rtc and sysctl settings does and if it is necessary...
User avatar
raboof
Established Member
Posts: 1855
Joined: Tue Apr 08, 2008 11:58 am
Location: Deventer, NL
Has thanked: 50 times
Been thanked: 74 times
Contact:

Re: Configuration 'quickscan'

Post by raboof »

studio32 wrote:The script helped me to help someone
Good to hear :).
it should also be improved imo, maybe we can discuss it some more here and maybe you can post it on LAD mailinglist to improve it.
Agreed. Perhaps I should put it in a public versioning system and open a bugtracker for it somewhere - google code for example.
Checking for Generic PCI bus-master DMA support... not found.
** Kernel without Generic PCI bus-master DMA support
For more information, see:
- http://lowlatency.linuxaudio.org
are you sure DMA support is needed, why?[/quote]

It's not needed per se, but http://lowlatency.linuxaudio.org suggested it so it seemed like a good idea to include it. It seems not all kernels include this option - perhaps I should only check that it's enabled if it's available.
Checking filesystem types...
** Warning: do not use /media/disk for audio files.
fuseblk is not a good filesystem type for realtime use and large files.
For more information, see http://wiki.linuxmusicians.com/doku.php ... ilesystems
/media/disk are cdrom and mounted devices?
Yes. Perhaps I should skip 'cdrom', as that's kind of obvious.
Checking filesystem 'noatime' parameter...
** Warning: / does not have the 'noatime' parameter set
For more information, see http://wiki.linuxmusicians.com/doku.php ... ilesystems
** Warning: /media/disk does not have the 'noatime' parameter set
For more information, see http://wiki.linuxmusicians.com/doku.php ... ilesystems
AFAIK using noatime should be a suggestion in the script, not a warning that something is wrong, e.g. relatime should work good too right?
But that goes for all suggestions: they're all 'warnings' (and not 'errors') to improve an already-functional system.
Checking the ability to prioritize processes with (re)nice... nice: kan beleefdheidswaarde niet instellen: Toegang geweigerd
Do you have to run the script as root or user. When you run it as root you have problems detecting the audio groups..
You should run it as the user who wants to do audio work.
** Could not assign a -5 nice value. Set up limits.conf.
For more information, see http://wiki.linuxmusicians.com/doku.php ... imits.conf
I have seen a lot different nice values.... maybe the script could give an range and/ or an default setting (from jackaudio.org)?
It doesn't really matter, as long as 'important' processes get lower nice values than 'less important' processes.
I'm not sure what /dev/rtc and sysctl settings does and if it is necessary...
making a large sysctl max_user_watches is a pretty common suggestion - not exactly sure from the top of my head what it's good for (iirc it had something to do with efficient/fast memory access, but I should look this up).

/dev/rtc is useful for sequencers to 'keep time' better.

We should be adding these explanations to the wiki :)
User avatar
raboof
Established Member
Posts: 1855
Joined: Tue Apr 08, 2008 11:58 am
Location: Deventer, NL
Has thanked: 50 times
Been thanked: 74 times
Contact:

Re: Configuration 'quickscan'

Post by raboof »

User avatar
raboof
Established Member
Posts: 1855
Joined: Tue Apr 08, 2008 11:58 am
Location: Deventer, NL
Has thanked: 50 times
Been thanked: 74 times
Contact:

Re: Configuration 'quickscan'

Post by raboof »

philip888 wrote:

Code: Select all

DAW-888:~$ sudo perl /home/philip/Desktop/realTimeConfigQuickScan.pl
I didn't notice until now: you should *not* run this script with 'sudo'.

I added a check telling you this.
User avatar
Capoeira
Established Member
Posts: 1321
Joined: Tue May 12, 2009 1:01 pm
Location: Brazil
Has thanked: 3 times
Been thanked: 2 times

Re: Configuration 'quickscan'

Post by Capoeira »

ran the script:

Code: Select all

Checking if you are root... no - good.
Finding current kernel config... found /boot/config-2.6.29-1-multimedia-686
Checking for Ingo Molnar's Real-Time Preemption... found - good.
Checking for high-resolution timers... found - good.
Checking for Generic PCI bus-master DMA support... found - good.
Checking for 1000hz clock... found - good.
Checking for High Resolution Timers... found - good.
Checking filesystem types... ok.
Checking tmpfs mounted on /tmp..  not found.
** Warning: no tmpfs partition mounted on /tmp
   For more information, see:
   - http://wiki.linuxmusicians.com/doku.php?id=system_configuration#tmpfs
   - http://lowlatency.linuxaudio.org
Checking filesystem 'noatime' parameter...
** Warning: / does not have the 'noatime' parameter set
   For more information, see http://wiki.linuxmusicians.com/doku.php?id=system_configuration#filesystems
** Warning: /home does not have the 'noatime' parameter set
   For more information, see http://wiki.linuxmusicians.com/doku.php?id=system_configuration#filesystems
** Warning: /home/usb-1 does not have the 'noatime' parameter set
   For more information, see http://wiki.linuxmusicians.com/doku.php?id=system_configuration#filesystems
** Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks.
   Find your sound card's IRQ by looking at '/proc/interrupts' and lspci.
Checking the ability to prioritize processes with (re)nice... yes - good.
Checking the ability to prioritize processes with rtprio...  unknown.
** rtprio command-line tool  not found - install it for improved feedback
   For more information, see http://wiki.linuxmusicians.com/doku.php?id=system_configuration#priorities
Checking whether you're in the 'audio' group... yes - good.
Checking for multiple 'audio' groups... no - good.
Checking access to the real-time clock... not found.
** Warning: /dev/rtc not found.
Checking sysctl settings:
- checking inotify max_user_watches... >= 524288 - good.
Checking for resource-intensive background processes... none found - good.
first thing, i have the folowing in my fstab:

Code: Select all

tmpfs /dev/shm tmpfs defaults 0 0
do i have to change this?

2nd: i have USB-Audio-Device, this doesn't have a irq, doesn't it?

the rest i have to get a look at
Post Reply