varnish-cache icon indicating copy to clipboard operation
varnish-cache copied to clipboard

Disable Transparent Hugepage

Open cartoush opened this issue 1 year ago • 5 comments

cartoush avatar Sep 12 '24 09:09 cartoush

🤔 I am aware of the problem, but is this not a specific jemalloc+THP issue which surfaces exclusively with the malloc storage? For cases where the malloc storage is not used, disabling THP might be counter-productive (after all, there is a good reason for introducing it to reduce TLB misses), so if this was otherwise found to be a useful addition, I would ask to at least make it a jail flag, possibly on by default, but possible to disable.

(oh, and also, are these really "stability" issues? All I am aware of is memory usage going overboard)

nigoroll avatar Sep 12 '24 13:09 nigoroll

I cherry-picked the first commit to master because it improves documentation for the release.

nigoroll avatar Sep 12 '24 13:09 nigoroll

Varnish used to crash left and right when Transparent Hugepage first landed, and we sometime still see inexplicable problems go away once we disable the feature.

I'm fine with the addition of a jail option to control this, would you agree to disabled by default?

dridi avatar Sep 13 '24 07:09 dridi

As a matter of principle, I'll be +0 on how linux_jail works and what it does.

bsdphk avatar Sep 16 '24 13:09 bsdphk

bugwash: @cartoush please make this a jail option. disabled by default is preferred, enabled by default would also work for me, as long as there is admin control at all

nigoroll avatar Sep 16 '24 13:09 nigoroll

FTR: I ended up editing this change quite heavily. See the commit message for details.

nigoroll avatar Feb 14 '25 10:02 nigoroll