In Linux driver development and application development., When you want to allocate memory, you’ll face a lot of memory allocation functions: malloc kmalloc of the vmalloc alloc_page dma_alloc etc.

As a system admin, you should aware of maximum amount of memory and CPU that supported by Linux system. This is an essential task and you must consider at least AMD and Intel platforms. Intel x86 * Maximum CPUs: 32…

In a former post, we know that with the help of defrag_mem we can clean up buffers / cached memory to gain more real “free” memory. Defrag_mem works like common windows memory optimizer, it asks for as much memory as…

This command is very useful to free buffers when you face lack of memory issue. Free memory can be seen from the output of common linux command “free”: [root@leaseweb ~]# free total       used       free     shared    buffers     cached Mem:       1033972     987192     …

Hugepages can be allocated using the /proc/sys/vm/nr_hugepages entry, or by using the sysctl command. To view the current setting using the /proc entry: # cat /proc/sys/vm/nr_hugepages 0