451
Storage / Re: PMSHELL
« on: July 30, 2018, 02:38:59 pm »
I would say no. Of course it's possible to monitor memory usage (above512 and others) and fragmentation (interpret Theseus memory information and calculate the gaps) but what is the value when you should be warned about to 'low' memory?
From the kernels POV memory is not to 'low' until an application request memory and the kernel can not fulfill this request. Not earlier. Moreover even if you think some memory is low (as above512 tells you) you do not know if there is some large block already freed by some application somewhere. The kernel knows this can be given to another application if requested (interpret Theseus and you may know too). But it depends on the value of memory the application requests. You don't know beforehand how much memory f.i. a java script wants to allocate before this specific one runs and makes the request to the OS.
When it comes to defragmentation it's simply not possible AFAIK. The kernel would need to to tell some application to free some specific memory. But neither the kernel nor the applications have implemented such algorithm.
From the kernels POV memory is not to 'low' until an application request memory and the kernel can not fulfill this request. Not earlier. Moreover even if you think some memory is low (as above512 tells you) you do not know if there is some large block already freed by some application somewhere. The kernel knows this can be given to another application if requested (interpret Theseus and you may know too). But it depends on the value of memory the application requests. You don't know beforehand how much memory f.i. a java script wants to allocate before this specific one runs and makes the request to the OS.
When it comes to defragmentation it's simply not possible AFAIK. The kernel would need to to tell some application to free some specific memory. But neither the kernel nor the applications have implemented such algorithm.