Add more disk quota to an package: how WHM organize the data in the SSD?

MindServer

Well-Known Member
Mar 18, 2020
230
31
28
Spain
cPanel Access Level
Root Administrator
Hi friends,

I have for example a package in WHM/cPanel with 3GB of disk quota. When a client buy this package the system assign 3GB in the SSD, check this image: img1

But what happens if I update this package in WHM/cPanel and now he have 5GB of disk quota?, the system will assign 2 additional GB in other SSD location?: img2

Or will move all accounts in the SSD for the disk quota be continuous?: img3

This question is because: if the hosted data not are continuos can affect to performance.

Thank you. Have a nice day!
 
Last edited by a moderator:

andrew.n

Well-Known Member
Jun 9, 2020
626
181
43
EU
cPanel Access Level
Root Administrator
The limits are virtual so you can assign more space than what is currently available. For example if you have a 128GB SSD in the server you can still assign 300GB to one account.
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
629
205
343
cPanel Access Level
DataCenter Provider
Your diagrams sort of imply VPS's. With normal shared hosting accounts, the OS will write the files wherever the OS can find room. How well they are organized, how much they are fragmented etc. is really more of a function of the file system type than anything else.

The accounts almost certainly never end up like img1. Unless you have really customized things databases will be written to /var/lib/mysql/DB_NAME and the rest of their web site files will be under /home It's highly unlikely those would ever be contiguous.
 
  • Like
Reactions: MindServer

MindServer

Well-Known Member
Mar 18, 2020
230
31
28
Spain
cPanel Access Level
Root Administrator
I understand. I thought that each client has their assigned partition.

But if the quota assigned in "WHM -> Add package" only is virtual and the client's files aren't continuos (like img1), can affect to performance?. This is a very fragmented SSD.

In my server I have CloudLinux 7 (with CageFS) + WHM/cPanel.

Thank you very much. Have a nice day.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,418
999
313
cPanel Access Level
Root Administrator
That's a choice that's really up to the admin of the system, and I know there is some controversy about running defragmenting tools on SSD systems vs spinning hard disks. Unless the fragmentation is incredibly severe, I personally doubt you'd notice much difference in performance, especially on a production server where lots of things are interacting anyway. Let's say the user's data is still all in one place - what about the OS, Apache, PHP, and all the other tools that interact to load a page? They wouldn't be reading from the same "block" of data.
 
  • Like
Reactions: MindServer

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
629
205
343
cPanel Access Level
DataCenter Provider
I'm more than slightly courious about what you are running on the server that you are that worried about disk IO performance. For most web sites I'd spend more time optimizing the MySQL calls, PHP code, images, CSS/javascript etc.
 

MindServer

Well-Known Member
Mar 18, 2020
230
31
28
Spain
cPanel Access Level
Root Administrator
Perfect, thank you very much friends.

I just need to know if can I change disk quota in a WHM's package and this not will decrease the performance.

My question is because I have a server with the basic package which have 3GB, and want to change him to 5GB. This will affect more than 100 cPanel accounts.

With your replies I know that I can do this changes, not have any other method for not fragment the SSD. Have a nice day.