Pourquoi Matlab n'utilise-t-il pas l'espace de swap ? (sous linux ubuntu)

Arrivant en limite de mémoire RAM physique, matlab s'arrête sans utiliser l'espace de swap qui reste désespérément vide.
Les essais de saturation de mémoire faits avec d'autres logiciels conduisent pourtant normalement à l'utilisation du swap.
Y at-t-il une option pour que matlab l'utilise normalement ?
Merci d'avance
Michel Perreau

Antworten (2)

Vandit
Vandit am 27 Mär. 2024

0 Stimmen

Hi Michel,
MATLAB does not offer a direct option or setting to specifically utilize swap space when the physical RAM is fully utilized. MATLAB's memory management is designed to work within the operating system's memory management framework. Swap management is managed at the Operating System level. MATLAB requests memory from the OS, and it is the OS that decides whether this memory is allocated from physical RAM or swap space.
The commands "whos" and "feature memstats" can be utilized to assess memory usage and identify which components are utilizing it.
You may find additional clarity by referring to the following links:
Hope this helps.
Michel
Michel am 27 Mär. 2024

0 Stimmen

Thanks Vandit,
I know that swap space is normally managed by system, but in this case, matlab is the single sofware I have tested to behave this way so I wonder what's happen really (I have made tests with several other softwares).
I will read carefully the links you provide and see what I can do.
Michel

Produkte

Version

R2022b

Gefragt:

am 6 Mär. 2024

Beantwortet:

am 27 Mär. 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!