diff options
author | John Sonnenschein <johns@joyent.com> | 2012-05-17 18:26:57 +0000 |
---|---|---|
committer | John Sonnenschein <johns@joyent.com> | 2012-05-17 18:26:57 +0000 |
commit | 04b244dd661c24b510ac22936decfc0972d202d3 (patch) | |
tree | 3ebfef98afc303fddf3415d6fba64e8682f495e8 /usr/src/cmd/svc/startd/startd.c | |
parent | eac250589e41f1b705e1b7427b02b3379aac9f9e (diff) | |
parent | a69187741b83640a90dd8586195456dd50c016a8 (diff) | |
download | illumos-joyent-20120517.tar.gz |
Merge git.joyent.com:illumos-joyent20120517
Diffstat (limited to 'usr/src/cmd/svc/startd/startd.c')
-rw-r--r-- | usr/src/cmd/svc/startd/startd.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/src/cmd/svc/startd/startd.c b/usr/src/cmd/svc/startd/startd.c index f0c57d37eb..14180c5f54 100644 --- a/usr/src/cmd/svc/startd/startd.c +++ b/usr/src/cmd/svc/startd/startd.c @@ -21,6 +21,7 @@ /* * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, Joyent, Inc. All rights reserved. */ /* @@ -143,6 +144,7 @@ static uint8_t prop_reconfig = 0; pthread_mutexattr_t mutex_attrs; +#ifdef DEBUG const char * _umem_debug_init(void) { @@ -154,6 +156,19 @@ _umem_logging_init(void) { return ("fail,contents"); /* UMEM_LOGGING setting */ } +#endif + +const char * +_umem_options_init(void) +{ + /* + * To reduce our memory footprint, we set our UMEM_OPTIONS to indicate + * that we do not wish to have per-CPU magazines -- if svc.startd is so + * hot on CPU such that this becomes a scalability problem, there are + * likely deeper things amiss... + */ + return ("nomagazines"); /* UMEM_OPTIONS setting */ +} /* * startd_alloc_retry() |