Re: tvtime and the Linux 2.6 scheduler

From: Ingo Molnar
Date: Mon May 24 2004 - 01:44:58 EST



* Con Kolivas <kernel@xxxxxxxxxxx> wrote:

> > 33 ms : time per NTSC frame
>
> snip
>
> The followup email from someone describing good performance may help
> us understand what's going on. Your example of poor performance is one
> when the cpu performance is marginal to get exactly 30 fps processed
> and on the screen. The cpu overhead in 2.6 is slightly higher than 2.4
> so a borderline case may be just pushed over.

most of the cpu overhead comes from HZ=1000. Especial with SCHED_FIFO
there should be minimal (if any) impact from the scheduler changes -
SCHED_FIFO tasks get all CPU time, no ifs and whens.

could people who experience tvtime performance problems apply the patch
below to change HZ back to 100? Does it have any impact?

Ingo

--- linux/include/asm-i386/param.h.orig
+++ linux/include/asm-i386/param.h
@@ -2,7 +2,7 @@
#define _ASMi386_PARAM_H

#ifdef __KERNEL__
-# define HZ 1000 /* Internal kernel timer frequency */
+# define HZ 100 /* Internal kernel timer frequency */
# define USER_HZ 100 /* .. some user interfaces are in "ticks" */
# define CLOCKS_PER_SEC (USER_HZ) /* like times() */
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/