[launchd-changes] [22858] trunk/launchd/src/launchctl.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon Sep 18 10:22:02 PDT 2006
Revision: 22858
Author: zarzycki at apple.com
Date: 2006-09-18 10:22:00 -0700 (Mon, 18 Sep 2006)
Log Message:
-----------
Now that the kernel tunes itself, we can delete this code.
<rdar://problem/3213045> boot-up clean up: desiredvnodes should be auto-tuned like niobuf and nbuf
Modified Paths:
--------------
trunk/launchd/src/launchctl.c
Modified: trunk/launchd/src/launchctl.c
===================================================================
--- trunk/launchd/src/launchctl.c 2006-09-15 01:51:47 UTC (rev 22857)
+++ trunk/launchd/src/launchctl.c 2006-09-18 17:22:00 UTC (rev 22858)
@@ -1159,12 +1159,7 @@
int
bootstrap_cmd(int argc __attribute__((unused)), char *const argv[] __attribute__((unused)))
{
- int memmib[] = { CTL_HW, HW_MEMSIZE };
- int mvnmib[] = { CTL_KERN, KERN_MAXVNODES };
int hnmib[] = { CTL_KERN, KERN_HOSTNAME };
- uint64_t mem = 0;
- uint32_t mvn;
- size_t memsz = sizeof(mem);
struct group *tfp_gr;
if (assumes((tfp_gr = getgrnam("procview")) != NULL)) {
@@ -1179,10 +1174,6 @@
assumes(sysctl(tfp_rw_mib, 3, NULL, NULL, &tfp_rw_gid, sizeof(tfp_rw_gid)) != -1);
}
- if (assumes(sysctl(memmib, 2, &mem, &memsz, NULL, 0) != -1)) {
- mvn = mem / (64 * 1024) + 1024;
- assumes(sysctl(mvnmib, 2, NULL, NULL, &mvn, sizeof(mvn)) != -1);
- }
assumes(sysctl(hnmib, 2, NULL, NULL, "localhost", sizeof("localhost")) != -1);
loopback_setup_ipv4();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20060918/e9a206d2/attachment.html
More information about the launchd-changes
mailing list