Re: HZ and real-time performance

Kurt Garloff (garloff@suse.de)
Thu, 1 Jul 1999 12:39:06 +0200


--Kj7319i9nmIyA2yE
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 01, 1999 at 02:24:21AM -0400, nunca wrote:
> I've been playing with writing real-time guitar effects boxes, and I've
> gotten the latency down to 11ms with stock linux. Would changing the HZ
> constant to 1024 help me reduce the latency (ie, does it cause a task to
> get scheduled more often)? Any other/better suggestions for decreasing
> latency? Thanks in advance.
> -Nolan

I don't know what you are dpoing excatly, so I can't answer your question.
Latencies can not only be introduced by scheduling latency, but also by
interrupts holding spinlocks and similar.

I'd suggest you try my HZ=3D400 patch from http://www.garloff.de/kurt/linux/
(It not only sets the HZ value to 400, but also fixes the times reported to
userspace.) and test it out.

Regards,
--=20
Kurt Garloff <garloff@suse.de> SuSE GmbH, N=FCrnberg, FRG
Linux kernel development; SCSI driver: DC390 (tmscsim/AM53C974)

--Kj7319i9nmIyA2yE
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3in

iQCVAwUBN3tFShaQN/7O/JIVAQFl6gP+KebG1WrcJDcgLtZwsxysVqZBuGpynKQH
JnOpJI45EWaAYvjvSpLx12xy9qViOb82GHE4W8SLRbauvYIhns2fEk1zA9amD0Cb
c46MSE19nK7ukDqZ9PdJXwXWncVNC9Uiuff0RcSQymVeetWX9otLrmP7XKTqAk6g
lEZtyTelSBE=
=+hz3
-----END PGP SIGNATURE-----

--Kj7319i9nmIyA2yE--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/