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

1 vue (au cours des 30 derniers jours)
Michel
Michel le 6 Mar 2024
Réponse apportée : Michel le 27 Mar 2024
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

Réponses (2)

Vandit
Vandit le 27 Mar 2024
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 le 27 Mar 2024
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

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!