Ed Schouten
f3b86a5fd7
Mark most often used sysctl's as MPSAFE.
...
After running a `make buildkernel', I noticed most of the Giant locks in
sysctl are only caused by a very small amount of sysctl's:
- sysctl.name2oid. This one is locked by SYSCTL_LOCK, just like
sysctl.oidfmt.
- kern.ident, kern.osrelease, kern.version, etc. These are just constant
strings.
- kern.arandom, used by the stack protector. It is already protected by
arc4_mtx.
I also saw the following sysctl's show up. Not as often as the ones
above, but still quite often:
- security.jail.jailed. Also mark security.jail.list as MPSAFE. They
don't need locking or already use allprison_lock.
- kern.devname, used by devname(3), ttyname(3), etc.
This seems to reduce Giant locking inside sysctl by ~75% in my primitive
test setup.
2009-01-28 19:58:05 +00:00
..
2008-11-18 21:01:54 +00:00
2008-11-22 12:36:15 +00:00
2009-01-25 12:07:43 +00:00
2008-08-28 15:23:18 +00:00
2008-10-28 11:33:06 +00:00
2008-11-09 10:48:06 +00:00
2008-08-21 15:02:17 +00:00
2008-07-02 20:44:33 +00:00
2009-01-17 07:17:57 +00:00
2008-09-25 13:42:19 +00:00
2008-11-27 16:47:25 +00:00
2008-11-01 08:35:28 +00:00
2008-12-16 01:24:05 +00:00
2008-11-29 14:32:14 +00:00
2008-05-23 03:04:27 +00:00
2008-12-30 12:51:56 +00:00
2008-06-16 04:44:29 +00:00
2008-07-21 15:05:25 +00:00
2008-10-23 20:26:15 +00:00
2008-12-05 20:50:24 +00:00
2008-12-05 20:50:24 +00:00
2008-12-05 20:50:24 +00:00
2008-09-23 14:25:56 +00:00
2009-01-28 19:58:05 +00:00
2008-08-03 21:07:19 +00:00
2008-12-03 15:54:35 +00:00
2008-12-10 23:12:39 +00:00
2008-09-10 19:13:30 +00:00
2008-11-27 04:40:37 +00:00
2009-01-25 09:11:24 +00:00
2009-01-01 20:03:01 +00:00
2009-01-28 19:58:05 +00:00
2008-12-05 16:47:30 +00:00
2008-10-23 20:26:15 +00:00
2008-09-10 19:13:30 +00:00
2008-11-17 20:49:29 +00:00
2008-09-22 10:37:02 +00:00
2008-12-11 16:09:31 +00:00
2008-09-17 15:49:44 +00:00
2009-01-23 22:46:45 +00:00
2008-12-12 12:06:28 +00:00
2008-10-24 01:09:24 +00:00
2008-09-10 19:13:30 +00:00
2008-12-08 21:46:55 +00:00
2008-05-18 19:32:36 +00:00
2008-11-23 21:05:22 +00:00
2008-11-05 03:01:23 +00:00
2008-08-28 19:34:58 +00:00
2008-05-12 06:42:06 +00:00
2008-09-10 19:13:30 +00:00
2009-01-17 07:17:57 +00:00
2008-09-18 20:10:11 +00:00
2009-01-28 19:58:05 +00:00
2008-11-22 12:36:15 +00:00
2008-11-17 20:49:29 +00:00
2008-10-20 02:37:53 +00:00
2009-01-24 10:22:49 +00:00
2008-06-24 07:32:12 +00:00
2008-12-02 21:37:28 +00:00
2008-12-10 23:12:39 +00:00
2008-12-29 19:24:00 +00:00
2008-08-03 13:33:45 +00:00
2008-08-03 13:33:45 +00:00
2008-05-23 04:06:49 +00:00
2008-12-01 14:34:42 +00:00
2008-09-25 20:07:42 +00:00
2009-01-25 07:35:10 +00:00
2009-01-25 07:35:10 +00:00
2008-06-26 07:52:45 +00:00
2008-10-28 21:58:48 +00:00
2008-07-21 20:50:49 +00:00
2008-10-23 15:53:51 +00:00
2008-11-22 05:55:56 +00:00
2008-11-18 21:01:54 +00:00
2008-09-21 18:12:18 +00:00
2008-04-22 19:38:30 +00:00
2008-11-11 12:25:08 +00:00
2008-05-04 23:29:38 +00:00
2008-12-20 00:33:10 +00:00
2008-07-27 21:45:20 +00:00
2008-12-30 23:49:54 +00:00
2009-01-17 07:17:57 +00:00
2008-12-21 21:54:01 +00:00
2008-10-22 18:20:45 +00:00
2008-04-22 19:38:30 +00:00
2008-08-09 10:26:21 +00:00
2008-12-01 01:54:55 +00:00
2009-01-26 15:32:39 +00:00
2008-10-30 21:48:28 +00:00
2008-07-18 07:10:33 +00:00
2008-12-13 13:07:12 +00:00
2008-09-15 22:45:14 +00:00
2009-01-21 04:19:18 +00:00
2009-01-25 18:38:42 +00:00
2008-11-11 14:55:59 +00:00
2008-11-05 03:01:23 +00:00
2008-10-07 07:10:28 +00:00
2008-11-09 10:48:06 +00:00
2008-11-09 10:45:13 +00:00
2008-11-09 10:48:06 +00:00
2009-01-15 12:15:46 +00:00
2008-09-04 16:30:53 +00:00
2008-08-20 08:31:58 +00:00
2008-08-30 09:18:27 +00:00
2008-08-30 09:18:27 +00:00
2008-12-21 21:16:57 +00:00
2009-01-25 08:27:11 +00:00
2008-06-03 12:38:00 +00:00
2008-11-12 09:04:44 +00:00
2009-01-26 16:43:18 +00:00
2008-10-23 15:53:51 +00:00
2009-01-03 13:24:08 +00:00
2009-01-04 19:16:36 +00:00
2009-01-04 19:22:53 +00:00
2009-01-18 20:19:55 +00:00
2008-11-28 14:53:18 +00:00
2008-06-27 05:39:04 +00:00
2008-12-01 22:33:50 +00:00
2008-10-07 09:51:39 +00:00
2008-12-10 22:17:09 +00:00
2008-10-23 15:53:51 +00:00
2009-01-01 20:03:22 +00:00
2009-01-23 13:23:17 +00:00
2008-10-10 21:23:50 +00:00
2009-01-28 19:05:18 +00:00
2008-12-12 00:57:38 +00:00
2008-12-28 14:32:27 +00:00
2009-01-08 12:47:30 +00:00
2008-12-18 11:58:12 +00:00
2008-12-16 23:16:10 +00:00
2009-01-23 22:13:00 +00:00
2009-01-23 22:13:30 +00:00
2009-01-21 14:51:38 +00:00
2009-01-21 14:42:00 +00:00