-
Notifications
You must be signed in to change notification settings - Fork 210
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
Linux Swap memory fills #1202
Comments
Can you please provide the following information:
|
Hi Hugh,
Here is the main snippet of code and essentially we have a process that generates a code snippet
Output from RHEL 8 where the swap was filled and the script still runs successfully every day
Output from RHEL 7 server where swap never fills
|
In order to drop redundant buffering of the file in a string output, you can directly use file handler session for HTH |
Thanks @imitko , i did change the call to |
What is the kernel |
I have tried several |
In the article you mentioned, there is a reference to another article Change in swap behavior between RHEL 7 and RHEL 8 kernels - SOLUTION IN PROGRESS
which indicates that the problem you are seeing with swap is caused by differences in the way the RHEL7 and RHEL8 kernels function. As you already tried set the I suggest you keep an eye on these two articles and see if RedHat comes up with a kernel fix, or at least some more settings to try. If you have a RedHat support contract, I would definitely contact them to see if you can get more info on when a complete solution is expected. At this point, I see no reason to assume that the Virtuoso binary is responsible for the swap usage behaviour. |
Hey @pkleef yeah, i did see the solution in progress article which led me to the cgroup. As I read, the cgroup change should have potentially fixed the issue. I can say after doing this and the job ran last night, the swap did not fill but did go up higher than what would be expected limit. I am trying more tests but have to wait till the overnight process runs. Thanks for the response. |
Hello, not sure if anyone has any thoughts on a problem we have seen since trying to migrate to Linux 8 servers. We have a
cron
script that runs every night and it runs the following procedure to uploadttl
file data to Virtuoso:For some reason, it fills the swap memory immediately on Linux 8 servers during the
cron
job, but if I run the script manually during the day, it does not fill up or fills up minimally. I have tried different tests and the only thing I have seen that helps is basically doubling the resources (CPU/Memory), which is not a feasible fix as we have a lot of VMs that run this job. We are currently running this script on Linux 7 servers and there are no issues with swap.The text was updated successfully, but these errors were encountered: