Memory Allocation in uClinux

Asked 1 years ago, Updated 1 years ago, 104 views

I am currently developing software on uClinux.

Running software under development for a long time

Allocation of length 69632 from process 7238(cut) failed

A kernel message (dmesg) such as this will eventually crash per operating system.

As a result of various hacks, we assume that the reason is apparently due to an attempt to allocate memory to a new process, but there is not enough continuous space available.

So I created a tool to visualize the structure page, and when I looked at the contents, I saw many pages with flags of 0 and _count of non-0 (specifically 1).

Is this possible for kernel memory management?Or, if flags is 0, will the field in _count be ignored?

If you follow the kernel source, please let me know if anyone knows.

Thank you for your cooperation.

linux memory-management

2022-09-29 21:57

1 Answers

I'm a questioner.

After the question, after reading various documents, I understood that the attributes of each element (flags or _count) seem to be managed by the first page information.

Therefore, looking directly at the page information made no sense.

Therefore, we will close this case.

Thank you.


2022-09-29 21:57

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.