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

Revert "Remove instperf" #5356

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

VladimirSlavik
Copy link
Contributor

This reverts commit 359c9e7.

See #5299 (comment)

This reverts commit 359c9e7.
@github-actions github-actions bot added the f40 label Nov 30, 2023
Copy link
Contributor

@M4rtinK M4rtinK left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks! :)

Copy link
Contributor

@poncovka poncovka left a comment

Choose a reason for hiding this comment

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

It would be good to also document why this script stays and take responsibility for its maintenance.

from subprocess import Popen, PIPE
import time

# grab the top five memory consuming processes, returning them in a string of
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please extend the comment with information that we have about this script and its use cases?

mem_logger = logging.getLogger("memLog")
mem_logger.setLevel(logging.DEBUG)

handler = logging.FileHandler("/tmp/memory.dat")
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you write a simple kickstart test for this script, please? I think it might be enough to start an installation with the debug kernel option, check if the instperf service is running and make sure that /tmp/memory.dat is not empty.

Copy link
Contributor

Choose a reason for hiding this comment

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

please use mkstmp because using /tmp ended up causing problems #5375

@M4rtinK M4rtinK merged commit 13dca5f into rhinstaller:master Jan 31, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

4 participants