This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is it correct to use 1024 for linux filesystems?

Hi All,

When I started working on disk rules, I thought of creating two rules by copying the original rule 'Disk Free Space' as file systems vary in both Operating Systems.

Windows - 1 KB (should actually display as KiB) is 1024 Bytes.

Linux - 1 KB (displayed correct) is 1000 Bytes.

If what I think is correct then the condition in the snip should be changed to 1000 for Linux boxes and should remain untouched for Windows boxes.

Reason why I am asking is 'cuz in real-time scenarios no system engineer should get call in the middle of night for a margin threshold miscalculation from the monitoring team.

Please provide your thoughts.

Thank You

AJ

Parents
  • Thanks Howard for the information, however I still need some understanding.

    Below is the disk stats of a linux server and compared it with Foglight equivalent fields.

    If I take the first row of stats, assume it to drive 1, then dividing the available space from Foglight with 1024 matching the results of Free space in system stats i.e., 3566/1024 = 3.48.

    When I do the opposite i.e., calculating the system stats by taking used (31%) i.e., 

    used space = (31/100) * 5 (total space) = 1.55

    free space = total - used space = 5 - 1.55 = 3.45 which is different from free space 3.48

     

    Am I doing something wrong or calculating incorrectly?

     

    Thank You

    AJ

Reply
  • Thanks Howard for the information, however I still need some understanding.

    Below is the disk stats of a linux server and compared it with Foglight equivalent fields.

    If I take the first row of stats, assume it to drive 1, then dividing the available space from Foglight with 1024 matching the results of Free space in system stats i.e., 3566/1024 = 3.48.

    When I do the opposite i.e., calculating the system stats by taking used (31%) i.e., 

    used space = (31/100) * 5 (total space) = 1.55

    free space = total - used space = 5 - 1.55 = 3.45 which is different from free space 3.48

     

    Am I doing something wrong or calculating incorrectly?

     

    Thank You

    AJ

Children
No Data