Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: sensekey and Linux/OLPC

Date2009-01-13 03:13
From"Art Hunkins"
Subject[Csnd] Re: Re: sensekey and Linux/OLPC
Andres,

The problem occurs with both, though it is slightly less severe with the 
shell (ctrl-alt-F1).

Here are some data:
On my relatively-current Windows XP desktop, running sensekey alone in 
real-time (command-line), gives a csound CPU load of 5% and a total CPU load 
of 9%. This is for ASCII keystrokes or no keystrokes (probably because 
nothing is being printed to the console).

On the OLPC, either as a terminal activity or a shell, the same run averages 
< 1% both for csound CPU and total CPU *with no ASCII input* (this in itself 
is rather amazing). However, with keyboard input, csound CPU usage can 
easily reach 11% and total CPU, 22%. Recall, this is running the sensekey 
opcode alone, on a single instrument. The only difference is in the ASCII 
keystrokes and their printing to the console.

So the problem to me seems to point to how the OLPC and sensekey are 
together processing ASCII input, and printing it to the console.

I'd much appreciate all developers' input on this issue - including Mac 
behavior in this circumstance. (Does it print ASCII to the console when 
sensekey is processing it?)

FWIW, my testing was done at SR=44100 and a k-rate of 10, all messages off.

Art Hunkins

----- Original Message ----- 
From: "Andres Cabrera" 
To: 
Sent: Friday, January 09, 2009 7:42 AM
Subject: [Csnd] Re: sensekey and Linux/OLPC


Hi Art,
Are you using the terminal activity or the shell that you get with 
ctrl-alt-F1?
Does the problem occur with both?

Cheers,
Andrés

On Thu, Jan 8, 2009 at 11:22 PM, Art Hunkins  wrote:
> I continue to have issues of extremely heavy CPU usage with ASCII keyboard
> input on the OLPC.
>
> In Windows, there is a *modest* CPU penalty incurred with keyboard input
> (via sensekey), but with Linux/OLPC it is major.
>
> Of course, the OLPC prints the sensekey input to the console, whereas
> Windows does not, and this may well be part of the problem.
>
> Indeed if one watches CPU usage via top in Linux, you can see usage jump
> significantly (both overall and within Csound) with keyboard input.
>
> Can someone have a look at sensekey to determine:
> 1) if there's any way of keeping it from printing to the terminal (in
> Linux); 2) if there's any other way in which Linux overhead could be
> minimized with ASCII input?
>
> The penalty is so bad that I may not be able to use sensekey messaging 
> with
> the OLPC, but rather use only MIDI controllers - which require no such
> overhead at all.
>
> Art Hunkins
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>



-- 


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
csound"= 


Date2009-01-13 13:31
From"Andres Cabrera"
Subject[Csnd] Re: Re: Re: sensekey and Linux/OLPC
AttachmentsNone