R
R
rusikus2019-07-16 05:44:09
ubuntu
rusikus, 2019-07-16 05:44:09

How to limit the Ubuntu swap file?

How to limit the maximum swap file size in the swapspace utility?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rusikus, 2019-07-16
@rusikus

In general, in the swapspace utility, the total swap file size is controlled by a combination of the three options freetarget=30, upper_freelimit=60, and lower_freelimit=20. Based on them, the utility limits the total size of the paging file in % depending on the free disk space and free RAM. Using the freetarget=20, upper_freelimit=30 and lower_freelimit=10 parameters, we managed to achieve an acceptable size of the total swap file memory

R
rPman, 2019-07-16
@rPman

https://mnorin.com/manager-prostranstva-podkachk...

# Greatest allowed size for individual swapfiles
max_swapsize=2t

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question