Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overlay sys-libs/libsemanage: set compression on #1168

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

tormath1
Copy link
Contributor

@tormath1 tormath1 commented Sep 22, 2023

otherwise it blows from 3MB to 33MB on /usr/lib/selinux/policy/mcs/ for example.


Locally tested, 33MB to 3MB for /usr/lib/selinux/policy/mcs/

# 1-9 when compressing. The higher the number,
# the more memory is traded off for disk space.
# Set to 0 to disable bzip2 compression.
bzip-blocksize=0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would setting this to 9 bring some savings in disk space? I honestly have problems parsing the description of this option.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting this value to 1 drops from 12MB to 2MB, while setting it to 9 drops to 1.9MB.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With remove-hll = false and bzip-blocksize = 1 we're dropping from 33MB to 3MB. I guess we can keep the HLL files and only change the bzip-blocksize to 1.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good.

otherwise it blows from 3MB to 33MB on `/usr/lib/selinux/policy/mcs/`
for example.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@tormath1 tormath1 changed the title overlay sys-libs/libsemanage: ship our own semanage.conf overlay sys-libs/libsemanage: set compression on Sep 22, 2023
@tormath1 tormath1 marked this pull request as ready for review September 22, 2023 13:17
@tormath1 tormath1 requested a review from a team September 22, 2023 13:17
@tormath1 tormath1 merged commit 0b705e9 into main Sep 22, 2023
1 check failed
@tormath1 tormath1 deleted the tormath1/selinux-size branch September 22, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants