Configuration 'quickscan'
Moderators: MattKingUSA, khz
- 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:
Configuration 'quickscan'
Tuning a system, especially if you're not too familiar with what can be tuned and what it all means, can be quite a daunting task.
I think it would be useful to have a script that looks at the current configuration of your system, and suggests and explains possible improvements.
Does anyone know if such a script already exists?
I think it would be useful to have a script that looks at the current configuration of your system, and suggests and explains possible improvements.
Does anyone know if such a script already exists?
do you mean something like rtirq:
http://www.rncbc.org/jack/
rtirq-20071012.tar.gz
description is here:
http://irc.esben-stien.name/mediawiki/i ... ux_Systems
http://www.rncbc.org/jack/
rtirq-20071012.tar.gz
description is here:
http://irc.esben-stien.name/mediawiki/i ... ux_Systems
- 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:
Not really: I mean a script that will look at your system, and tell you about ways to tune your system that you haven't applied yet.brummer wrote:do you mean something like rtirq
For example, the script might run 'ps -Leo rtprio,cmd,pid', and verify that jack is running at a suitably high priority. If not, it would warn you about it and point you to more documentation like
http://irc.esben-stien.name/mediawiki/i ... ux_Systems .
- 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:
Of course, the tool should at the very least point to a website/wikipage explaining the details, and giving references to other documentation (i.e. for specific distro's).Jedee wrote:i wouldnt touch anything without proper documentation...
At least such a tool could tell you if there's anything broken (with regards to realtime operation) in your configurationtweaking on your own is asking for trouble. if it aint broke dont fix it!
- 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'
I created a quick first stab to better explain the idea:
http://arnout.engelen.eu/files/dev/linu ... ickScan.pl
When ran, it produces output like this:
http://arnout.engelen.eu/files/dev/linu ... ickScan.pl
When ran, it produces output like this:
Code: Select all
Finding current kernel config... found /boot/config-2.6.24-19-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...
** Warning: do not use /mnt/sda2 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?id=system_configuration#filesystems
Checking filesystem 'noatime' parameter... ok.
Checking the ability to prioritize processes with (re)nice... yes - good.
Checking whether you're in the 'audio' group... yes - good.
Checking sysctl settings:
- checking inotify max_user_watches... >= 524288 - good.
Re: Configuration 'quickscan'
@ Raboof, sorry for not checking your script earlier.. It's great and I think it CAN be USEFUL!
not in the audio group? I am in it!
I doubt if relatime and noatime makes a lot of difference... (?)
I gonna read this: http://lowlatency.linuxaudio.org
Code: Select all
$ sudo perl /home/jack/Desktop/realTimeConfigQuickScan.pl
Finding current kernel config... found /boot/config-2.6.24-21-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.. 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
** 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.
Code: Select all
$ sudo adduser jack audio
The user `jack' is already a member of `audio'.
I gonna read this: http://lowlatency.linuxaudio.org
How? How can I find the IRQ of my soundcard?Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks
- khz
- Established Member
- Posts: 1648
- Joined: Thu Apr 17, 2008 6:29 am
- Location: German
- Has thanked: 42 times
- Been thanked: 92 times
Re: Configuration 'quickscan'
i did the same mistake like you studio32. i run the script as root, not as user
maybe with
btw i dident have a RT patch and i think you dont need anymore since 2.6.26.xx.
is this right?
realTimeConfigQuickScan.pl
uname -a
Code: Select all
daw@dawtux ~ $ /home/daw/Audio/realTimeConfigQuickScan.pl
...
Checking whether you're in the 'audio' group... yes - good.
..
studio32 wrote:How? How can I find the IRQ of my soundcard?
Code: Select all
lspci -v
Code: Select all
|grep "your soundcard"
Code: Select all
cat /proc/interrupts
is this right?
realTimeConfigQuickScan.pl
Code: Select all
daw # /home/daw/Audio/realTimeConfigQuickScan.pl
Finding current kernel config... found /proc/config.gz.
Checking for Ingo Molnar's Real-Time Preemption... not found.
** Kernel without real-time capabilities found
For more information, see http://wiki.linuxmusicians.com/doku.php?id=system_configuration#installing_a_real-time_kernel
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 filesystem 'noatime' parameter... ok.
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.
Code: Select all
Linux dawtux 2.6.27-gentoo-r3-k8_kif #1 SMP PREEMPT Fri Nov 21 18:04:53 CET 2008 i686 AMD Athlon(tm) X2 Dual Core Processor BE-2350 AuthenticAMD GNU/Linux
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
- I don't care about the freedom of speech because I have nothing to say.
Re: Configuration 'quickscan'
Dont know...btw i dident have a RT patch and i think you dont need anymore since 2.6.26.xx.
is this right?
Is there also a scan script for checking how goed the system is working? E.g how much latency etc. to compare distro's or audio devices for example?
Re:
The websit is hacked? What is rtirq?brummer wrote:do you mean something like rtirq:
http://www.rncbc.org/jack/
rtirq-20071012.tar.gz
description is here:
http://irc.esben-stien.name/mediawiki/i ... ux_Systems
Re: Configuration 'quickscan'
Startup scripts for tunning the realtime scheduling policy and priority
of relevant IRQ service threads, featured for a realtime-preempt enabled
kernel configuration.
of relevant IRQ service threads, featured for a realtime-preempt enabled
kernel configuration.
- 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'
You can see that in lspci - I should add that to the warning.studio32 wrote:Because you're running with 'sudo', it's checking whether 'root' is in the audio group . I should find a solution for that.Code: Select all
$ sudo perl /home/jack/Desktop/realTimeConfigQuickScan.pl ... Checking whether you're in the 'audio' group... no. ** add yourself to the audio group with 'adduser $USER audio'
How? How can I find the IRQ of my soundcard?Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks
Re: Configuration 'quickscan'
@thorgal thanks.
How do I use it on a Debian system?brummer wrote:Startup scripts for tunning the realtime scheduling policy and priority
of relevant IRQ service threads, featured for a realtime-preempt enabled
kernel configuration.
Code: Select all
# rtirq.sh start
bash: rtirq.sh: command not found
Re: Configuration 'quickscan'
get the 64studio package :
http://www.mirrorservice.org/sites/64st ... -1_all.deb
then, in a terminal as root :
dpkg -i rtirq_20070101-1_all.deb
then, to tweak the setup, you can edit the text file /etc/default/rtirq
it really implies that you have an RT patched kernel because the patch will make the kernel kick off some processes that wouldn't exist without the patch. If you run a non RT patch kernel, the script does not make sense even if it's installed. It will just fail to do what it's supposed to.
http://www.mirrorservice.org/sites/64st ... -1_all.deb
then, in a terminal as root :
dpkg -i rtirq_20070101-1_all.deb
then, to tweak the setup, you can edit the text file /etc/default/rtirq
it really implies that you have an RT patched kernel because the patch will make the kernel kick off some processes that wouldn't exist without the patch. If you run a non RT patch kernel, the script does not make sense even if it's installed. It will just fail to do what it's supposed to.