The invention provides a memory
allocation method and device,
electronic equipment and a storage medium, and the method comprises the steps: loading a kernel module of a target
file system, and under the condition that a mounting instruction for the target
file system is received, mounting the target
file system to a specified
directory of an
operating system, the method comprises the steps that a kernel module is used for storing a reserved memory, the kernel module is used for dividing the reserved memory into continuous memory blocks of various sizes, under the condition that a file creating request of an application program is received, a target file is created in a specified
directory through the kernel module, and based on the
file size of the received target file, a target reserved memory is determined from the continuous memory blocks; when the application program applies for the reserved memory, the standard file
system call can be called through the target file
system to create the target file, so that the universality of reserved memory allocation is improved, meanwhile, when the application program applies for the reserved memory, only the size of the memory needs to be specified, additional reserved memory information does not need to be managed, and the memory allocation efficiency is improved. And the convenience of reserved memory allocation is improved.