Now on my system (debianx64) the page size is 4096 bytes. Is there any way to reduce it? I would like to store in memory a lot of small pieces, but even for 1 byte is reserved. I can’t use another 4095 due to being added to 1 post here. Is this true or am I mistaken? Can this be done? thanks for the answers.
No.
4096 is the smallest page size provided by the x86 platform. This is a processor restriction. It offers large sizes (up to 4 MB, depending on mode), but usually it is selected by the operating system at boot time.
, . , , . .
, , , , .
- . , .
, . , , , , .
The page size (which BTW cannot be lowered below 4K on x86 platforms) is most likely not relevant to your situation. If you select the data on the heap, the question of page size will not arise as you expect.
Source: https://habr.com/ru/post/1779863/More articles:Exported function name symbol name - exportFlash-строитель (Flex) - скрыть элемент пользовательского интерфейса - flexdelphi, respond to copy action or execute paste - delphiRewriting MVC application style - javaMySQL, word search from one line to another line - sqlphp The next smallest number in the array is phpC ++ new / new [] how to allocate memory? - c ++.net windows api: get or install the latest directory used by the file open dialog - .netДва параллельных TransactionScope, каждый из которых имеет собственное соединение - c#django-mptt does not bind data together correctly - pythonAll Articles