[linux-audio-dev] Latencytest of filesystems (ext2, ext3 w. defaults)

2004-06-02 Thread Roger Larsson
I use, XFree86 nv Extras: * some filehandling (non local root of testing) and * run with min(SCHED_FIFO)+1 not max - it is a CPU hog (80%) [the more CPU usage the less prio] - show that it works to avoid creating a trend... /RogerL -- Roger Larsson Skellefteå Sweden diff -Naur latencyte

Re: [linux-audio-dev] kernel preemption patch and 2.4.19

2004-06-02 Thread Roger Larsson
> where to report it or ask about it? First - you mention virtual terminals What video driver are you using? Nvidia? If that is the case retest with xfree86 (nv) Second - try to what is happening (Magic SysRq) Third - 2.4.19 is kind of old now (not that many will be interested...), upgrade and try to reproduce. /RogerL -- Roger Larsson Skellefteå Sweden

jack context switches (Was: Re: [linux-audio-dev] another kernel patch?)

2003-12-02 Thread Roger Larsson
On Tuesday 02 December 2003 02.50, Jack O'Quin wrote: > Roger Larsson <[EMAIL PROTECTED]> writes: > > But it is still a way to see that no client burns cycles where it should > > not - jackd would not start (or stop). And you _can_ get fewer context > > switche

Re: [linux-audio-dev] Re: mini Review: Re: [Jackit-devel] latest CVS commit

2003-12-02 Thread Roger Larsson
obably sleep for > max (1msec, period_msecs). agree? Either that or (period_msecs + 1) You should get a solid lockup if your period_msecs is lower than 1000 us == 1 ms when running SCHED_FIFO... (unless you run clients at the same priority and the kernel yields at poll - I don't think it does) /RogerL -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] mini Review: Re: [Jackit-devel] latest CVS commit

2003-12-01 Thread Roger Larsson
engine->driver->period_usecs/1000); - - - if (poll (pfd, 1, poll_timeout) < 0) { Isn't this dangerous? * What happens if period_usecs < 1000? Well poll_timeout gets 0 since period_usecs is an uint64_t A poll with time out of zero will return immediately. OK? /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] another kernel patch?

2003-12-01 Thread Roger Larsson
On Sunday 30 November 2003 05.03, Jack O'Quin wrote: > Roger Larsson <[EMAIL PROTECTED]> writes: > > > That's right. But, Paul and I have been working closely with this and > > > don't have much faith in the correctness of the 2.4 scheduler. > >

Re: [linux-audio-dev] another kernel patch?

2003-11-29 Thread Roger Larsson
On Sunday 30 November 2003 03.19, Jack O'Quin wrote: > Roger Larsson <[EMAIL PROTECTED]> writes: > > If next client is a RT process (SCHED_FIFO/RR) then it WILL be selected > > unless there is another RT process with higher priority, and lower than > > jackd otherwi

Re: [linux-audio-dev] another kernel patch?

2003-11-29 Thread Roger Larsson
e jack should handle the priorities for jack clients - priorities is a relative issue anyway... Then jackd could use this scheme when there is only one client to run - and the lower priority clients when there are several. /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] another kernel patch?

2003-11-29 Thread Roger Larsson
> This was about switching threads within a single process - simulating threads in a system where they are not handled by the kernel. Not about switching from one user process to another. > any thoughts? adding a syscall is a pretty trivial patch to create. And then the hard part begins - trying to get it accepted by Linus :-) /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] Tracker

2003-11-28 Thread Roger Larsson
hare - but then you need to handle several versions too... In this situation I do not mind /opt ... /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] Re: POSIX caps/realtime/root processes

2003-11-27 Thread Roger Larsson
t; Yes. :) echo 1 > /proc/sys/kernel/lowlatency ? If you have enabled "Control low latency with sysctl" It might be possible that something like lock break is needed... Lots of good stuff is available at: http://www.tech9.net/rml/linux/ But most are for 2.4 or early 2.5 kernels /RogerL -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] Linux Audio article in DATOR MAGAZIN 2003-12 (swedish)!

2003-11-26 Thread Roger Larsson
ts looking at www.djcj.org/LAU/quicktoots * Ecasound * AlsaModularSynth * Legasynth * SpiralSynth * Pd * Soundtracker, cheesetracker * Alsaplayer * xmms /RogerL -- Roger Larsson Skellefteå Sweden

[CODE] rts with memory protection (Was: Re: [linux-audio-dev] Re: linux-audio-dev Digest, Vol 2, Issue 24)

2003-11-20 Thread Roger Larsson
On Wednesday 19 November 2003 15.53, Jack O'Quin wrote: > Roger Larsson <[EMAIL PROTECTED]> writes: > > I have an idea! > > > > rt_monitor is running mlockall and I avoided > > * dynamic memory allocation > > * system calls > > - If I split the

Re: [linux-audio-dev] Re: linux-audio-dev Digest, Vol 2, Issue 24

2003-11-19 Thread Roger Larsson
On Wednesday 19 November 2003 01.40, Jack O'Quin wrote: > Roger Larsson <[EMAIL PROTECTED]> writes: > > Problem is - why doesn't most distributions even ship with wrappers suid > > to be able to start the application with SCHED_FIFO/RT/mlock? > > - It is du

Re: [linux-audio-dev] Re: linux-audio-dev Digest, Vol 2, Issue 24

2003-11-18 Thread Roger Larsson
workarounds. Another thing to try is to run memtest86 (SuSE has it in Lilo menu) let it run for a while (full night) /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] Re: linux-audio-dev Digest, Vol 2, Issue 24

2003-11-18 Thread Roger Larsson
does rt_monitor print? (It could be the memory leak and mlockall(FUTURE) problem, As I do not check that yet. Another alternative is a fast forking client - they are hard to stop) /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] Re: linux-audio-dev Digest, Vol 2, Issue 24

2003-11-18 Thread Roger Larsson
ke ANY guarantees on "worst case"! > > Otherwise, a good solution. Perhaps adequate for some applications. But at the same time SCHED_FIFO is adequate for most applications. See my point? :-) /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] Re: linux-audio-dev Digest, Vol 2, Issue 24

2003-11-17 Thread Roger Larsson
Like capabilities - do not check uid, but it can fake uids too!) + Can use whatever kernel provides + Only requires the rt_monitor to be started by root - can be done by init + Protects the system from overuse (and lockups) due to bugs in code. - Can not provide mlockall since it has no pid parameter - the monitor can't do it for another process. (I would say that it is unlikely that pages used in a tight audio loop would be thrown out - big buffers might... Add additional page reads?) /RogerL -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] [CODE RFC] redefining sched_setscheduler using LD_PRELOAD

2003-11-13 Thread Roger Larsson
s no monitor running. /RogerL -- Roger Larsson Skellefteå Sweden rts.zip Description: Zip archive

[linux-audio-dev] Fwd: [[NO] PATCH] cfq + io priorities

2003-11-12 Thread Roger Larsson
n only submit io when it gets scheduled. Default IO priority for a new process is 10. Patch is against bk-current. -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] Fixed vs Floating point comparison.

2003-11-07 Thread Roger Larsson
non volatile pointer dst 5.0 s 4.9 s array dst 4.5 s 4.1 s /RogerL -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] StreamIt - "compiler for modern streaming systems"

2003-11-07 Thread Roger Larsson
. /RogerL -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] Re: aRts development (KDE)

2003-11-07 Thread Roger Larsson
t; > I think this should work. An example of playing stuff using playobjects > > and one of how to play a simple sinusoid is attached. You may have to > > edit the Makefile. > > > > > > *** eSafe scanned this email for malicious content *** > > *** IMPORTANT: Do not open attachments from unrecognized senders *** -- Roger Larsson Skellefteå Sweden

Monitor - again Re: [linux-audio-dev] Linux 2.6 not a latency panacea?

2003-08-14 Thread Roger Larsson
brary), too, > as jackstart does. You can request SCHED_FIFO/RT from my monitor. Current implementation is working but it can be improved! It uses static allocations intentionally. The problem is to get it accepted - should it be added to jack(d)? /RogerL -- Roger Larsson Skellefteå Sweden rt_monitor.zip Description: Zip archive

Re: [linux-audio-dev] Linux 2.6 not a latency panacea?

2003-08-14 Thread Roger Larsson
overused those processes would run out of their timeslice (SCHED_RR never runs out of their timeslice) I think this feature would be pretty cool! And adding this for latency sensitive bandwith limited streaming applications could simplify lots of stuff for the default scheduler... /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] new realtime scheduling policy

2003-03-18 Thread Roger Larsson
that SCHED_USERFIFO were handled in a strict FIFO manner, no priorities, then a running process of that class can only be suspended by a SCHED_FIFO or SCHED_RR Anyway, I think this patch has its place on linux-kernel. It will most likely be rejected but it shows that people are interested in these issues... (Who knows Ingo might get another bright idea... :-) /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] [OT] [for sale] RME Hammerfall (digi9652)

2003-03-04 Thread Roger Larsson
> (sorry for the off-topic post, but i want people > > on these lists to have the first chance at this) > > > > Rev 1.5 Hammerfall Digi9652 > > all cables > > Windows/Mac driver CD > > original packing materials > > > > current street price: about $580 > > asking price: $480 OBO + shipping > > -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] Why? call back API and other thoughts...

2003-02-28 Thread Roger Larsson
On Friday 28 February 2003 14:49, Fons Adriaensen wrote: > Roger Larsson writes: > > - - - > > In a pure push model each processing step reads data from > > one file/pipe/device, processes it, pushes it to a file/pipe/device > > You get: > >* lots

[linux-audio-dev] Why? call back API and other thoughts...

2003-02-27 Thread Roger Larsson
e hard to eliminate extra copying. Note: Arts and the KDE multimedia framework does a lot of things right today. It even goes one step furter since it moves the pluggins, including input and output into one process - artsd. But currently it does not work perfectly together with applications using

[linux-audio-dev] Fwd: CSL Motivation

2003-02-25 Thread Roger Larsson
fo/kde-multimedia --- -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] Re: Steve Harris' C++ v C benchmark

2003-02-16 Thread Roger Larsson
Intel 386") And at least use optimization level -O1 (use -O3 to get automatic inlining) /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] MIDI Clock and ALSA seq

2003-02-14 Thread Roger Larsson
On Friday 14 February 2003 16:18, Steve Harris wrote: > On Fri, Feb 14, 2003 at 03:54:35 +0100, Roger Larsson wrote: > > On Friday 14 February 2003 15:02, Steve Harris wrote: > > > Hi all, > > > > > > I'm trying to hack up a quick app that sends MIDI clo

Re: [linux-audio-dev] MIDI Clock and ALSA seq

2003-02-14 Thread Roger Larsson
re out how to send MIDI clock pulses explicitly. The ALSA seq > interface lets me set it up to go automatically, but I want to send a > clock pulse every 1/24th of the buffer, so the sync is correct. > How about dividing the buffer in 24 frames. And send one MIDI event each frame? Doable? /RogerL -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] binary package of ardour - can be found in SuSE 8.1 (earlier?)

2003-02-12 Thread Roger Larsson
ne Control and so can be controlled from any MMC controller, such as the Mackie Digital 8 Bus mixer and many other modern digital mixers. Authors: Paul Davis <[EMAIL PROTECTED]> Distribution: SuSE Linux 8.1 (i386) -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] SCHED_FIFO watchdog util (was: 2.4.20 + lowlat +preempt + alsa + jack = dead computer)

2003-01-07 Thread Roger Larsson
> P.S. Where can I find the mentioned utility? > See my reply to the original message. I forgot to change Subject... it is late... /RogerL -- Roger Larsson Skellefteå Sweden

Re: [Jackit-devel] Re: [linux-audio-dev] 2.4.20 + lowlat +preempt + alsa + jack = dead computer

2003-01-07 Thread Roger Larsson
hen the monitor kicked in. Maybe it should only reduce the priority of those/that as a first level. And if that did not work - reduce all... But I am a little afraid of adding features in this kind of application... Tomorrow... for now I send the current version... (it is quite small) Start rt

Re: [linux-audio-dev] Audio s/w ui swallowing

2002-12-18 Thread Roger Larsson
the window manager keep them with a common width and split height. Resize and Move all windows together. - Possible? /RogerL -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] musicdsp

2002-10-25 Thread Roger Larsson
http://www.musicdsp.org/ Needs help with their Linux information... Any takers? /RogerL -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] [RFC SOURCE] rt_monitor take 2

2002-09-02 Thread Roger Larsson
t rt prio <- sleeps for 5 s <- lockup!!! (for about 4 s) <- rt_monitor reduces the prio, rt exits when detected /RogerL -- Roger Larsson Skellefteå Sweden /* RT user. Copyright (c) 2002 Roger Larsson <[EMAIL

Re: [linux-audio-dev] [SOURCE] rt monitor to kill runaway RT processes

2002-09-02 Thread Roger Larsson
ng very specific resources to be used or more or less > exclusively by a single task, even when those resources more or less > mean "all of the machine". this is not something that POSIX or Linux > provides at this time. > > --p > > I will give this monitor addition a try tonight. /RogerL -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] [RFC] On the issue of only loading trusted code (was: RT monitor)

2002-08-31 Thread Roger Larsson
to intercept external calls - like fopen(). Recent messages show that we even can let the server compile the plugin - "runtime / compiletime processing proof of concept" And since it does the compilation it can chose which headers are allowed. /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] [SOURCE] rt monitor to kill runaway RT processes

2002-08-31 Thread Roger Larsson
RT processes. * it should not reduce the priority of system RT processes since that might be the reason for the DOS attack. [contradicion!] * it should have a log for the system administrator to look in. /RogerL -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] [SOURCE] rt monitor to kill runaway RT processes

2002-08-28 Thread Roger Larsson
not help you. /RogerL -- Roger Larsson Skellefteå Sweden /* RT monitor. Copyright (c) 2002 Roger Larsson <[EMAIL PROTECTED]> This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as pub

Re: [linux-audio-dev] request to use latencytest (OSDL)

2002-07-09 Thread Roger Larsson
that I have used is to start a timer when the need_reshed flag is set, and stop it when schedule is called... /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] SuSE 8.0

2002-04-15 Thread Roger Larsson
On Sunday 14 April 2002 22.47, Jörn Nettingsmeier wrote: > all in all, a nice distro, if a little bloated. if you're a > pssionate do-it-yourselfer, i'd recommend against it, but if you > want a quick start and can tolerate excessive eye-candy, suse80 > might be for you. I am a do it myself - so

Re: [linux-audio-dev] FREENIX paper about scheduling latency and stuff

2002-04-08 Thread Roger Larsson
/www.cs.utah.edu/~regehr/hourglass > > Thanks, > > John Regehr > Postdoc, School of Computing, University of Utah -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] Fwd: [PATCH] Preemptive Kernel for Ingo's O(1) scheduler

2002-01-11 Thread Roger Larsson
http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ------- -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] Kernel developments: process scheduler (Ingo Molnar)

2002-01-04 Thread Roger Larsson
ere might be some rough edges though. Comments, bug reports, suggestions are welcome, Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ --- -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] Kernel developments: disk scheduler (Jens Axboe)

2002-01-04 Thread Roger Larsson
* or a better data structure, since it should be just sorted + * by expire time. later :-) +*/ + struct list_head fifo_r; + struct list_head fifo_w; + + /* +* available entries +*/ + struct list_head free_entry; + + /* +* I/O scheduler settings +*/ + unsigned long expires[2]; + int batch; + int restart : 1; +}; + +/* * use the /proc/iosched interface, all the below is history -> */ typedef struct blkelv_ioctl_arg_s { -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ --- -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] Re: Scheduler ( was: Just a second ) ...

2001-12-18 Thread Roger Larsson
ean that a 1kB DMA buffer empties > in less than 1/100th of a second, but at least it should be < 200 irqs/sec > rather than >400). > Yes, it is probably more reasonable - but if the soundcard can support it? (I have a vision of lots of linux-audio-dev folks pulling out their new soundcard and replacing it with their since long forgotten SB16...) /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] Re: [Alsa-devel] RFC: Preemption on interrupt in Linux kernel

2001-12-12 Thread Roger Larsson
Increase it slightly if your execution time is really short. Decrease if long. Why? Because your process is most likely the only RT process in the system and will be selected before any non RT process. But if there is another RT process, you need to cooperate somewhat. -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] Compiling LL kernel for AMD without 3DNOW

2001-12-11 Thread Roger Larsson
On Wednesdayen den 14 November 2001 11.36, you wrote: > Hello, > > In reply to D. Stimits and Roger Larsson about compiling > an LL kernel for AMD Athlon without the 3DNOW optimizations > > I still get the undefined references to the > *_mmx_* functions. I am perfect

Re: [linux-audio-dev] weird distortion with alsa latency test

2001-11-13 Thread Roger Larsson
much sense to me, and I am recompiling > > (again) my kernel to make sure. Does anybody have a clue of > > what might be going on? > > > > Maarten -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] terrible latencytest results.. why??

2001-11-13 Thread Roger Larsson
' > fs/fs.o: In function `block_symlink': > fs/fs.o(.text+0x49b4): undefined reference to `_mmx_memcpy' > fs/fs.o: In function `flush_old_exec': > fs/fs.o(.text+0x834a): undefined reference to `_mmx_memcpy' > fs/fs.o: In function `d_alloc': > fs/fs.o(.text+0x11818): undefined reference to `_mmx_memcpy' > fs/fs.o(.text+0x11d48): more undefined references to `_mmx_memcpy' follow > make: *** [vmlinux] Error 1 -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] terrible latencytest results.. why??

2001-11-09 Thread Roger Larsson
On Friday 09 November 2001 09:35, Maarten de Boer wrote: > Roger Larsson <[EMAIL PROTECTED]> wrote: > > They are not bad either... (sub 10 ms) > > I think it is bad. I want the <3 ms :-) > I will be added latency in the processing (fft, ifft) > and it all adds up. &

Re: [linux-audio-dev] latency statistics

2001-10-29 Thread Roger Larsson
nels and patches, as indicated on the main > page. > > fwiw, > dave -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] alsa latency statistics

2001-10-24 Thread Roger Larsson
m generation to actual sending to soundcard, then add some time for output filters...) > - - - > used alsa-cvs from oct 20, oss = alsa's oss-emu Tests with standard oss would be interesting too... /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] stats please.

2001-10-20 Thread Roger Larsson
am" - God (Exodus 3:14) [or possibly "I will be", see http://pub18.ezboard.com/fhavetheologywillarguetheology.showMessage?topicID=329.topic&index=22 I did a seach for Exodus 3:14 and found that page...] -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] huge latency peaks with 2.4.10-smp kernel

2001-10-19 Thread Roger Larsson
w (2.4.12) proc parameter in /proc/irc/max_rate that I think is slightly related - if a driver is in interrupt service to much. The interrupt will be disabled and it will be polled instead... (this is really for GigaBit ethernet drivers, they can generate so many interrupts that no user space work gets done...) /RogerL -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] Fwd: Updated Linux 2.4.9/2.4.10 kernel preemption patches

2001-08-30 Thread Roger Larsson
EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ------- -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] linux-kernel info: 2.4 Performance bug in read ahead

2001-07-28 Thread Roger Larsson
returned... /RogerL -- Roger Larsson Skellefteå Sweden

[linux-audio-dev] linux-kernel info: 2.4 Performance bug in read ahead

2001-07-27 Thread Roger Larsson
suitable read ahead for each sequential stream... More about this later (including a patch) when the jury has returned... /RogerL -- Roger Larsson Skellefteå Sweden

Re: [linux-audio-dev] user lowlatency kernel experience

2001-06-14 Thread Roger Larsson
gt; > /s jsr > > On Thu, 14 Jun 2001, Joakim Verona wrote: > > ... In my opinion, different applications > > can never be assumed to be well-behaved and cooperative. Then we will > > wind up with systems behaving like windows 3.11 and the old Macintoshes. -- Roger Larsson Skellefteå Sweden

[with RFC] Developers - Priorities... Was: Re: [linux-audio-dev] user lowlatency kernel experience

2001-06-13 Thread Roger Larsson
Do both csound and timidity run with MAX SCHED_FIFO prio? Then this will be a big problem... I guess most people has followed Bennos example code to the exact word - including running max prio. * Developers - you should not do this... (It is fine when testing for the absolute best possible late