Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2011 10:00:49 +1200
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        current@freebsd.org
Subject:   geom kernel proc
Message-ID:  <BANLkTinoAA7DoF2M6Gh51i4OaLNEjA_xqg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--0016e659f51af1777304a2def88a
Content-Type: text/plain; charset=ISO-8859-1

Hi,


I have a cosmetic patch that moves the geom kprocs to kthreads

from

PID  TT  STAT      TIME COMMAND
    2  ??  DL     2:38.03 [g_event]
    3  ??  DL    49:43.61 [g_up]
    4  ??  DL    57:10.71 [g_down]

to

% procstat -t 13
  PID    TID COMM             TDNAME           CPU  PRI STATE   WCHAN
   13 100021 geom             g_event            1   92 sleep   -
   13 100022 geom             g_up               3   92 sleep   -
   13 100023 geom             g_down             3   92 sleep   -

Any objections?


Andrew

--0016e659f51af1777304a2def88a
Content-Type: application/octet-stream; name="geom-kthread.diff"
Content-Disposition: attachment; filename="geom-kthread.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gnhygmdn0

SW5kZXg6IHN5cy9nZW9tL2dlb21fa2Vybi5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9nZW9tL2dlb21f
a2Vybi5jCShyZXZpc2lvbiAyMTgxODApCisrKyBzeXMvZ2VvbS9nZW9tX2tlcm4uYwkod29ya2lu
ZyBjb3B5KQpAQCAtNDQsNiArNDQsNyBAQCBfX0ZCU0RJRCgiJEZyZWVCU0QkIik7CiAjaW5jbHVk
ZSA8c3lzL2Jpby5oPgogI2luY2x1ZGUgPHN5cy9zeXNjdGwuaD4KICNpbmNsdWRlIDxzeXMvcHJv
Yy5oPgorI2luY2x1ZGUgPHN5cy91bmlzdGQuaD4KICNpbmNsdWRlIDxzeXMva3RocmVhZC5oPgog
I2luY2x1ZGUgPHN5cy9sb2NrLmg+CiAjaW5jbHVkZ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vYywgJmdfZG93bl90ZCwKKwkgICAgUkZISUdIUElELCAw
LCAiZ2VvbSIsICJnX2Rvd24iKTsKIAltdHhfdW5sb2NrKCZHaWFudCk7CiAJRVZFTlRIQU5ETEVS
X1JFR0lTVEVSKHNodXRkb3duX3ByZV9zeW5jLCBnZW9tX3NodXRkb3duLCBOVUxMLAogCQlTSFVU
RE9XTl9QUklfRklSU1QpOwo=
--0016e659f51af1777304a2def88a--



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