US>What is the unit of memory swap-out swap-in for Linux?

Asked 1 years ago, Updated 1 years ago, 124 views

How does Linux swap out and swap in memory?

  • Is it per page (approximately 4kb)?
  • Or is it a little larger, internal structural unit around memory management?

This is because I think heap fragmentation occurs when dealing with scripting languages.Even if it's fragmentation, I thought it wouldn't be such a problem if the swap worked well.(If sufficient swapping is required) In that case, I'm asking because I think it's relatively important how many units the operating system is determining which area to swap.

linux memory-management swap

2022-09-30 16:23

1 Answers

Linux Memory Swapout Swap-In Units

Page by page.

The sar-W command measures the number of swap-ins/swaps out per second, which should be helpful.


2022-09-30 16:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.