Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611154 - Add tuning parameters for THP/transparent_hugepage
Summary: Add tuning parameters for THP/transparent_hugepage
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
: 611150 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-02-27 23:01 UTC by Robin Johnson
Modified: 2017-04-17 15:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
huge-pages.in (huge-pages.in,677 bytes, text/plain)
2017-02-28 16:18 UTC, William Hubbs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-02-27 23:01:06 UTC
$SUBJ, attachments to follow.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-02-27 23:01:19 UTC
*** Bug 611150 has been marked as a duplicate of this bug. ***
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-02-27 23:03:17 UTC
Basing it on the tuning params as seen here, that also show the various paths for THP itself, and how depending on kernel version, some params are numeric vs boolean:
https://docs.mongodb.com/manual/tutorial/transparent-huge-pages/#create-the-init-d-script
Comment 3 William Hubbs gentoo-dev 2017-02-28 16:18:46 UTC
Created attachment 465552 [details]
huge-pages.in

@robbat2 @calchan:
This will need to be a service script. The attached script is based on
the documentation linked in the previous comment.

I have two questions before I actually commit it.

1. When I add it to OpenRC,, should I add it to any runlevels by
default or just expect services to pull it in if they need it?

2. Do I need the case statement starting on line 32 or should I just
support RHEL 7 or newer?
Comment 4 William Hubbs gentoo-dev 2017-02-28 22:37:31 UTC
@robbat2 @calchan:
What should I do with this bug after our conversation earlier where we
determined that you can use tmpfiles to do this?
Comment 5 William Hubbs gentoo-dev 2017-04-17 15:47:51 UTC
My understanding is that this was handled using tmpfiles.d entries
instead.

Please let me know if I am not correct and we can re-open this bug.