Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2008 19:42:24 -0700
From:      John Giacomoni <john.giacomoni@colorado.edu>
To:        freebsd-hackers@freebsd.org
Subject:   Running without clock interrupts?
Message-ID:  <D66D7135-7E89-4A73-9C05-DC6819923CE5@colorado.edu>

next in thread | raw e-mail | index | archive | help

--Apple-Mail-347-521328921
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

I'd like to run a long loop with a minimum of interrupts, specifically  
without any scheduler or timer interrupts, the introduced jitter is  
noticeable.
Is this possible in FreeBSD 7?   If so how should I proceed? I can  
take as long as I need after the loop has completed to restore/ 
reinitialize any necessary state.

I do want to be able to process other interrupts to handle page faults  
and the like.

I'm working on dual core dual processor amd opteron setups right now  
and would like to support the intel family processors as well.

It seems that what I want to do is to disable/mask acpi timer  
interrupts for the processor but trying to read the 0xfee00320  
register (lvt_timer) causes a panic.
Alternatively, I could hook in the timer handler to return immediately  
when a flag is set, though this still might introduce more jitter than  
I'd like.

Thanks,

John Giacomoni

--

John.Giacomoni@colorado.edu
University of Colorado at Boulder
Department of Computer Science
Engineering Center, ECCR 1B50
430 UCB
Boulder, CO 80303-0430
USA


--Apple-Mail-347-521328921
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed
Content-Transfer-Encoding: 7bit





--Apple-Mail-347-521328921--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D66D7135-7E89-4A73-9C05-DC6819923CE5>