简体   繁体   中英

Factors that affect dynamic memory allocation

I want to know what are all the factors that affect malloc behavior (or other allocation functions).

Things I know:

  1. The vm.overcommit_memory variable.
  2. Setting limits for malloc size.
  3. 32/64 bit platform.

Thing I assume matter:

  1. Different kernel versions?
  2. How the OS handles swapping? And the OS itself?

Please correct me if I am wrong and if you know something else please comment down below.

The swapfile size, found in / affects allocation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM