From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Problems running latencytest: "error setting freq 1024" Date: Wed, 24 Mar 2004 13:58:48 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20040323205352.GA3246@fliwatut.scifi> <200403232133.i2NLXCZt015035@dhin.linuxaudiosystems.com> <20040323214205.GA4382@fliwatut.scifi> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from Cantor.suse.de (ns.suse.de [195.135.220.2]) by alsa.alsa-project.org (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id NAA22701 for ; Wed, 24 Mar 2004 13:58:50 +0100 In-Reply-To: <20040323214205.GA4382@fliwatut.scifi> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Frank Barknecht Cc: ALSA development List-Id: alsa-devel@alsa-project.org At Tue, 23 Mar 2004 22:42:05 +0100, Frank Barknecht wrote: > > Hallo, > Paul Davis hat gesagt: // Paul Davis wrote: > > > >$ measure -p ./out/x11.png -o ./out/x11.out -c 0 -f 1024 -n 2 -t 2 > > >I get this error message: "error setting freq 1024" > > > > probably a permissions problem. try it as root. > > This is while runng at root. (Sorry for the "$" I typed that one by > hand). > > A tip from Tim Goetze to do: > > # echo 2048 > /proc/sys/dev/rtc/max-user-freq > (^ sic!) > > didn't help either yet. I did a strace on the measure run now, which > showed something equally strange (to my eyes): > > mlockall(MCL_CURRENT|MCL_FUTURE) = 0 > sched_get_priority_max(0x1) = 99 > sched_setscheduler(0, 0x1, 0xbfffe254) = 0 > open("/dev/midi0", O_RDWR) = 3 > ioctl(3, 0x40047401, 0x400) = -1 ENOTTY (Inappropriate ioctl for device) > write(2, "error setting freq 1024\n", 24) = 24 > exit_group(1) = ? please make sure that you loaded latency-test module. > I'm still puzzled. Why "/dev/midi0"? that's because the latency-test kernel module requires a device file for ioctls. i chose it simply because the file is unused (it's for tclmidi). BTW, i uploaded latencytest-0.5.3. it includes i/o workloads in parallel. http://www.alsa-project.org/~iwai/latencytest-0.5.3.tar.gz Takashi ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click