Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2004 15:30:58 +0300 (MSK)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Urk, I take it back (was Re: Bug in p_estcpu handling onprocess exit in FBsd-4.x)
Message-ID:  <20040323152935.A3107@woozle.rinet.ru>
In-Reply-To: <200403210031.i2L0Vdoc096697@apollo.backplane.com>
References:  <200403201941.i2KJf6Ml095658@apollo.backplane.com> <200403202244.i2KMiRth096273@apollo.backplane.com> <200403210031.i2L0Vdoc096697@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--0-847937582-1080045058=:3107
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Sat, 20 Mar 2004, Matthew Dillon wrote:

MD>      All right, I figured out a solution.  Basically the solution for the
MD>      4.x scheduler (and the 4BSD scheduler in 5.x for people still using
MD>      it) is to bump the child's estcpu in fork and recover any delta changes
MD>      back to the parent in exit.  The DFly patch set is rather DFly specific,
MD>      so I will just explain it in case someone in FreeBSD land wants to fix
MD>      the problem in FreeBSD-4.

[snip]

In case abyone interested the patch for stable as of today is attached.

Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------
--0-847937582-1080045058=:3107
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="matt-kernexit.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <20040323153058.F3107@woozle.rinet.ru>
Content-Description: 
Content-Disposition: attachment; filename="matt-kernexit.patch"

IyAkSWQ6IEZyZWVCU0QvUGF0Y2hlcy9jb250cmliL21hdHQta2VybmV4aXQu
cGF0Y2gsdiAxLjEgMjAwNC8wMy8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ICAgICAgICAgICAgICAg
ICAgICANCiAJCQl9DQogDQogCQkJcS0+cF9yZXR2YWxbMF0gPSBwLT5wX3Bp
ZDsNCkluZGV4OiBzeXMva2Vybi9rZXJuX2ZvcmsuYw0KPT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PQ0KUkNTIGZpbGU6IC9ob21lL25jdnMvc3JjL3N5cy9rZXJu
L2tlcm5fZm9yay5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS43Mi4yLjE2
DQpkaWZmIC11IC1yMS43Mi4yLjE2IGtlcm5fZm9yay5jDQotLS0gc3lzL2tl
cm4va2Vybl9mb3JrLmMJMTEgTm92IDIwMDMgMDc6MjY6NDQgLTAwMDAJMS43
Mi4yLjE2DQorKysgc3lzL2tlcm4va2Vybl9mb3JrLmMJMjMgTWFyIDIwMDQg
MTA6NDk6MTIgLTAwMDANCkBAIC01MDYsNyArNTA2LDggQEANCiAJLyoNCiAJ
ICogc2V0IHByaW9yaXR5IG9mIGNoaWxkIHRvIGJlIHRoYXQgb2YgcGFyZW50
DQogCSAqLw0KLQlwMi0+cF9lc3RjcHUgPSBwMS0+cF9lc3RjcHU7DQorCXAy
LT5wX2VzdGNwdV9mb3JrID0gcDItPnBfZXN0Y3B1ID0gDQorCQlFU1RDUFVM
SU0ocDEtPnBfZXN0Y3B1ICsgRVNUQ1BVUkFNUCk7DQogDQogCS8qDQogCSAq
IFRoaXMgYmVnaW5zIHRoZSBzZWN0aW9uIHdoZXJlIHdlIG11c3QgcHJldmVu
dCB0aGUgcGFyZW50DQo=

--0-847937582-1080045058=:3107--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040323152935.A3107>