Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 18:15:12

Author Topic: Limits/ Total Disk Usage (MB) - wrong calculations !  (Read 4565 times)

0 Members and 1 Guest are viewing this topic.

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
HI !

Kloxo Kloxo-MR 7.0.0.b-2017011101 (but same was and on earlier releases)

Clienty has "Total Disk Usage (MB)" of 20000MB

However it blocks the wrinting to disk much earlier. PLease check you have MB entered to Kloxo as it seems it calculates quotas wrong !

clients directory shows 212MB usage
in a Quata view of clients shows 2506MB (this is probably with backups)
but still limit is 20000 but no files can be written any more.

Image attached

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Limits/ Total Disk Usage (MB) - wrong calculations !
« Reply #1 on: 2017-01-25, 11:42:30 »
1024 KB = 1 MB
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Re: Limits/ Total Disk Usage (MB) - wrong calculations !
« Reply #2 on: 2017-01-25, 12:15:52 »
Yes i know that 1024KB = 1MB, but this has nothing to do with the situation .

In limit sectionit says "Total Disk Usage (MB)" , which means 20000 i enter is ~20GB (which shows correcty on client limits list (19.53GB)

Space client uses for web - 212607KB (which is 212MB or 0.2GB)

Total space with bakcups client uses - 2.45GB (which is also displays corrcetly - 13% of 20GB)

But client cannot write any new files after >2GB space used .

Thus my assumption - even thoo in panel it shows sizes and limits correctly, but when it comes to real limiting , it looks like the limit is divided by 10 .

Please review my image carefully, hope you'll understand it ;)




Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Limits/ Total Disk Usage (MB) - wrong calculations !
« Reply #3 on: 2017-01-25, 12:21:31 »
All calculated using 1024 instead 1000. Also think about rounding value.
« Last Edit: 2017-01-25, 12:23:30 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Re: Limits/ Total Disk Usage (MB) - wrong calculations !
« Reply #4 on: 2017-01-25, 13:15:20 »
Hi Mustafa ,

I see you havent understood the bug correctly.

again - in CP when setting limits you have clear text to enter value in MB , thus entering 20000 makes limit 20GB . And CP shows all values good.

But reall limit is not 20GB but 2GB !!! (So it has nothing to do with dividing by 1000 or 1024 , theres somwhere "0" missing as difference is 10 times only, not 1000 or 1024.)

Im not sure where this limitation is set on linux side, but i can add more files for clients, but PHP cannot.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Limits/ Total Disk Usage (MB) - wrong calculations !
« Reply #5 on: 2017-01-26, 19:13:51 »
Yes, it's an old bug. Mustafa should use quotas instead of df. See linuxfslib.php:

Quote
        if ($byteflag) {
                return round($t * (1024), 1);
        } else {
                return round($t / (1024), 1);
        }
}
« Last Edit: 2017-01-26, 19:19:12 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Limits/ Total Disk Usage (MB) - wrong calculations !
« Reply #6 on: 2017-01-27, 03:51:53 »
Kloxo/Kloxo-MR using 'du' instead 'df'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Limits/ Total Disk Usage (MB) - wrong calculations !
« Reply #7 on: 2017-01-27, 18:47:08 »
Kloxo/Kloxo-MR using 'du' instead 'df'.

Sorry I mean du -sc

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.027 seconds with 21 queries.

web stats analysis