cookbook 'jemalloc', '= 0.1.6'
jemalloc (7) Versions 0.1.6 Follow1
Installs and configures the jemalloc library
cookbook 'jemalloc', '= 0.1.6', :supermarket
knife supermarket install jemalloc
knife supermarket download jemalloc
Description
This simple recipe configures, compiles and installs the memory allocation
library jemalloc
via source. jemalloc shines on high-request manycore
threaded applications and is a cheap upgrade if your workloads happen to fall
into this category.
Requirements
Platform
The following platforms are supported and tested using Vagrant:
- Ubuntu 12.04, 12.10
- CentOS 6
Other Debian and RHEL family distributions are assumed to work.
Chef Server
The cookbook converges best on Chef installations >= 10.16.2
Attributes
The following attributes are available on this cookbook:
-
node['jemalloc']['url']
andnode['jemalloc']['version']
- The version and URL that the library will be downloaded from -
node['jemalloc']['checksum']
- The SHA-256 checksum of the above file
In addition, the following configuration flags are available as switches
-
node['jemalloc']['configure']['lazy_lock']
- Enables lazy locking (locking on multi-threaded applications only) -
node['jemalloc']['configure']['xmalloc']
- Enables thexmalloc
feature of jemalloc -
node['jemalloc']['configure']['dss']
- Enablessbrk
alongmmap
for memory allocations -
node['jemalloc']['configure']['mremap']
- Enables themremap
feature of jemalloc -
node['jemalloc']['configure']['stats']
- Enables the statistics gathering features of jemalloc -
node['jemalloc']['configure']['profiling']
- Enables the code profiling features of jemalloc -
node['jemalloc']['configure']['valgrind']
- Enables valgrind support in jemalloc
Recipes
default.rb
The default recipe downloads, compiles and installs the selected version of
jemalloc.
Usage
Include the recipe on your node or role. Modify the
attributes as required in your role to change how various
configuration is applied per the attributes section above. In general,
override attributes in the role should be used when changing
attributes.
License and Author
- Author:: Panagiotis Papadomitsos (pj@ezgr.net)
Copyright 2013, Panagiotis Papadomitsos
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
0.1.6:
- Remove the
munmap
option as jemalloc 5 does not support it anymore
0.1.5:
- Bump jemalloc version
0.1.4:
- Bump jemalloc version
0.1.3:
- Add dependency to build-essential
0.1.1:
- Wrong file type uploaded at community portal
- jemalloc version bump
0.1.0:
- Initial release
Collaborator Number Metric
0.1.6 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.6 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.6 failed this metric
FC064: Ensure issues_url is set in metadata: jemalloc/metadata.rb:1
FC065: Ensure source_url is set in metadata: jemalloc/metadata.rb:1
FC066: Ensure chef_version is set in metadata: jemalloc/metadata.rb:1
FC069: Ensure standardized license defined in metadata: jemalloc/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: jemalloc/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: jemalloc/recipes/default.rb:20
Run with Foodcritic Version 14.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.6 passed this metric
Testing File Metric
0.1.6 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.6 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.6 failed this metric
0.1.6 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.6 failed this metric
FC064: Ensure issues_url is set in metadata: jemalloc/metadata.rb:1
FC065: Ensure source_url is set in metadata: jemalloc/metadata.rb:1
FC066: Ensure chef_version is set in metadata: jemalloc/metadata.rb:1
FC069: Ensure standardized license defined in metadata: jemalloc/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: jemalloc/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: jemalloc/recipes/default.rb:20
Run with Foodcritic Version 14.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.6 passed this metric
Testing File Metric
0.1.6 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.6 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.6 failed this metric
FC065: Ensure source_url is set in metadata: jemalloc/metadata.rb:1
FC066: Ensure chef_version is set in metadata: jemalloc/metadata.rb:1
FC069: Ensure standardized license defined in metadata: jemalloc/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: jemalloc/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: jemalloc/recipes/default.rb:20
Run with Foodcritic Version 14.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.6 passed this metric
Testing File Metric
0.1.6 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.6 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.6 failed this metric
0.1.6 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number