public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Scherrey <scherrey@gte.net>
To: Kurt Garloff <K.Garloff@ping.de>
Cc: Linux kernel list <linux-kernel@vger.rutgers.edu>
Subject: Re: [PATCH] HZ change for ix86
Date: Tue, 05 Jan 1999 22:57:16 -0500	[thread overview]
Message-ID: <3692DF1C.C03DD162@gte.net> (raw)
In-Reply-To: 19990105094830.A17862@kg1.ping.de

Kurt -

    Thanx for the insightful information about the impact of changing the HZ
values. Questions: a) how platform specific is this setting (i86, ALPHA, et al),
and b) Does increasing the HZ value increases context switches or increases
duration of each context?

    This sounds like an excellent developer's config option to me.... Any chance
of this happening soon?

    regards,

        Ben Scherrey

Kurt Garloff wrote:
<snip>

> lately, I've seen a couple of questions about changing HZ in the kernel for
> ix86. Your scheduler will run more often and your system might feel snappier
> when increasing HZ, that's why we want it. Overhead for doing so got
> relativlely low with recent CPUs, so me might really want it.
>
> Basically, you can change it without causing any problems within the kernel.
> However the HZ based value is reported by a system call sys_times() to the
> userspace and as well from the proc fs.
>
> So, this has to be fixed to have a seamless HZ change.
>
> I created a patch which changes the values of HZ to 400 and fixed all places
> I could spot which report the jiffies value to userspace. I think I caught
> all of them. Note that 400 is a nice value, because we have to divide the
> values by 4 then, which the gcc optimizes to shift operations, which can be
> done in one or two cycles each and even parallelized on modern CPUs. Integer
> divisions are slow on the ix86 (~20 cycles) and the sys_times() needs four of
> them. You can easily change HZ to 500 and HZ_TO_STD to 5 in asm-i386/param.h,
> but then you would loose 80 CPU cycles per sys_times() syscall, which you
> might want to avoid.

<snip>


-
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/

  reply	other threads:[~1999-01-06 12:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-05  8:48 [PATCH] HZ change for ix86 Kurt Garloff
1999-01-06  3:57 ` Benjamin Scherrey [this message]
1999-01-06  9:41   ` Kurt Garloff
1999-01-07  9:54   ` Chris Wedgwood
1999-01-06  5:25 ` B. James Phillippe
1999-01-06  9:29   ` Kurt Garloff
1999-01-07 13:09     ` Pavel Machek
1999-01-08 14:14       ` Richard B. Johnson
1999-01-08 22:23         ` Kurt Garloff
1999-01-07  9:56   ` Chris Wedgwood
1999-01-07 17:38   ` Riley Williams
1999-01-06  8:21 ` Egil Kvaleberg
1999-01-07 17:56   ` Dan Kegel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3692DF1C.C03DD162@gte.net \
    --to=scherrey@gte.net \
    --cc=K.Garloff@ping.de \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=scherrey@proteus-tech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox