hi,
currently, scheduler_fork_hook copies parent's p_estcpu to child.
and scheduler_wait_hook adds it back to the parent.
it effectively doubles parent's p_estcpu and make some applications
(eg. my login script ;-) unreasonablly slow on cpu-loaded machines.
if no one objects, i'll commit the following patch.
YAMAMOTO Takashi
Index: kern/kern_synch.c
===================================================================
--- kern/kern_synch.c (revision 1390)
+++ kern/kern_synch.c (working copy)
@@ -1215,7 +1215,9 @@ scheduler_wait_hook(struct proc *parent,
{
/* XXX Only if parent != init?? */
- parent->p_estcpu = ESTCPULIM(parent->p_estcpu + child->p_estcpu);
+ if (parent->p_estcpu < child->p_estcpu) {
+ parent->p_estcpu = child->p_estcpu;
+ }
}
/*
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Linus Torvalds | Linux 2.6.27 |
| Andrew Morton | Re: PROBLEM: high load average when idle |
git: | |
| Nguyen Thai Ngoc Duy | Re: VCS comparison table |
| Michael Hendricks | removing content from git history |
| walt | git versus CVS (versus bk) |
| Francis Moreau | emacs and git... |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| Richard Stallman | Real men don't attack straw men |
| Karel Kulhavy | lookup option in /etc/resolv.conf ignored |
| Alexey Suslikov | OT: OpenBSD on Asus eeePC |
| Paul Moore | [PATCH v7 00/17] Labeled networking patches for 2.6.28 |
| Dale Farnsworth | Re: [PATCH 01/39] mv643xx_eth: reverse topological sort of functions |
| David Miller | Re: xfrm_state locking regression... |
| Michael Chan | [PATCH net-next 4/6] bnx2: Eliminate TSO header modifications. |
| How to make my PCIE ATA storage device running in Linux | 8 hours ago | Linux general |
| sata/ide timeout errors on asus server-mb | 12 hours ago | Linux kernel |
| Shared swap partition | 12 hours ago | Linux general |
| usb mic not detected | 17 hours ago | Applications and Utilities |
| Problem in Inserting a module | 17 hours ago | Linux kernel |
| Treason Uncloaked | 23 hours ago | Linux kernel |
| high memory | 3 days ago | Linux kernel |
| semaphore access speed | 3 days ago | Applications and Utilities |
| the kernel how to power off the machine | 3 days ago | Linux kernel |
| Easter Eggs in windows XP | 3 days ago | Windows |
