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

Set the correct value for sched-ext journald namespace #97

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

sirlucjan
Copy link
Collaborator

This pull request fixes an erroneous entry fixing the size of the sched-ext log in journald namespace.

However the logs were saved correctly in a separate space, so the mistake in the name of the directive made it impossible to limit its size.

Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Comment on lines +8 to +9
# Sets the maximum number of log files that can be stored for each namespace.
SystemMaxFiles=5
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this necessary if we set SystemMaxUse above?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I read in the journal documentation that it is sometimes worth adding, but of course I can remove it. This limits the default value from 100 to 5, which seems to make sense when using this exclusively for debugging one namespace.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Decave I'm also wondering if it's better to increase the space limit to 25M because scx sends a lot of logs to journal.

Copy link
Collaborator

Choose a reason for hiding this comment

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

So, IIUC SystemMaxSize determines the max file size to trigger the rotation and SystemMaxFiles determines how many rotations we want to keep before dropping them.

In that case maybe bump up a little bit the max size and for max files 5 is probably good enough.

Copy link
Collaborator

Choose a reason for hiding this comment

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

... and I tested this also on Ubuntu, all good.

@@ -1,7 +1,9 @@
[Journal]
# Sets the maximum journal size to 10M for each namespace.
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment needs to be updated

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
@Byte-Lab Byte-Lab merged commit 0ac9d40 into sched-ext:main Jan 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants