G
G
Gorelov2017-05-10 14:09:25
QNX
Gorelov, 2017-05-10 14:09:25

How to allocate memory for a process?

Guys, please tell me how to measure the maximum amount of memory that the system can allocate for a process? Can the system allocate more than one page for a process?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2017-05-10
@Askme23

Can the system allocate more than one page for a process?

The most common memory page size is 4 kilobytes. Many applications eat gigabytes of memory. Conclusion - maybe.
If restrictions are not explicitly set, then all available (I can not vouch for QNX). But available memory on multitasking systems is not constant. Applications running in the background can allocate and deallocate memory over time.
Here, of course, it is worth mentioning PAE, when the kernel has access to all memory, and applications only to 4 gigabytes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question