How can we measure Fragmentation/ discontinuity ?

  • Context: High School 
  • Thread starter Thread starter Aadharsh Aadhithya
  • Start date Start date
  • Tags Tags
    Discontinuity Measure
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 1K views
Aadharsh Aadhithya
Messages
5
Reaction score
0
How can we measure Fragmentation/ discontinuity in a system?
 
Physics news on Phys.org
It depends exactly what you mean by "fragmentation in system" - but one simple formula you could use would be:

(free - freemax)
---------------- x 100% (or 100% for free=0)
free
where

free = total number of bytes free
freemax = size of largest free block
That way, if all memory is in one big block, the fragmentation is 0%, and if memory is all carved up into hundreds of tiny blocks, it will be close to 100%.