ALT Linux kernel packages development
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Linux kernel packages development <devel-kernel@altlinux.ru>
Subject: Re: [d-kernel] HZ=250?
Date: Sat, 25 Jun 2005 13:01:08 +0300
Message-ID: <20050625100108.GW24580@osdn.org.ua> (raw)
In-Reply-To: <20050622151606.GA14883@localhost.localdomain>


[-- Attachment #1.1: Type: text/plain, Size: 1747 bytes --]

On Wed, Jun 22, 2005 at 07:16:27PM +0400, Denis Smirnov wrote:
>  MS> Вот и я так думаю.  Вчера с vsu@ обсудили, вышло вот что
>  MS> (также ещё два прилежащих и имеющих отношение к 2.6.12
>  MS> в свете 2.9.9.9 вопроса, насколько понимаю):
> Меня только пните больно, чтобы zaptel проверил.

Держи src.rpm.  Для удобства -- вот и описание:

---
List:       linux-kernel <?l=linux-kernel&r=1&w=2>
Subject:    [RFC][PATCH][2.6] CONFIG_HZ for x86 <?t=106778764700002&r=1&w=2>
From:       Mikael Pettersson <mikpe () csd ! uu ! se> <?a=90367460900004&r=1&w=2>
Date:       2003-11-02 15:36:22 <?l=linux-kernel&r=1&w=2&b=200311>
[Download message RAW <?l=linux-kernel&m=106778757803465&q=raw>]*

This patch adds a CONFIG_HZ option to x86, allowing the kernel-
internal HZ to be reduced from 1000 to 512 or 100. This solves
lost timer interrupt problems on really old machines like my 486.
According to Alan Cox, HZ==1000 is also harmful on some laptops
(presumably due to long SMI windows), so this patch should be
useful for those too.

Selecting a lower HZ may also help thermal efficiency slightly,
by allowing machines to idle longer between timer interrupts.
HZ==100 also reduces the size of the kernel, since it eliminates
a lot of HZ<-->USER_HZ conversions.                                             
HZ==512 may or may not be useful, but it does work. Why 512 and
not 500? It's to avoid having to correct for HZ != 1<<SHIFT_HZ
in kernel/timer.c:second_overflow().
 
The patch also fixes some jiffies_to_clock_t() buglets, which
cause warnings in fs/proc/proc_misc.c when (HZ % USER_HZ) != 0.

/Mikael
---

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/

[-- Attachment #1.2: kernel-fix-CONFIG_HZ-0.1-alt1.src.rpm --]
[-- Type: application/octet-stream, Size: 3339 bytes --]

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-06-25 10:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-15  6:46     ` [d-kernel] HZ=250? (was: [devel] I: Sisyphus 20050611 rebuild status) Michael Shigorin
2005-06-18 11:31       ` [d-kernel] " Konstantin A. Lepikhov
2005-06-22 14:40         ` [d-kernel] HZ=250? Michael Shigorin
2005-06-22 15:16           ` Denis Smirnov
2005-06-25 10:01             ` Michael Shigorin [this message]
2005-06-25 15:21               ` [d-kernel] HZ=250? Konstantin A. Lepikhov

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=20050625100108.GW24580@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=devel-kernel@altlinux.ru \
    /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

ALT Linux kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git