simple queue

in simple queue, for example i have 2 users. pc1 and pc2
isp bandwith parent max-limit = 10m

pc1 = limit-at =1m ,max-limit=5m
pc2 = limit-at =1m, max-limit=5m

if either PC1 or PC2 is online, they will have max-limit of 10m. but if 2 of them is online, their max-limit is 5m.
or vice-versa, if they are connected at the same time, max-limit will be 5m.
is there a way for me to do this without manually doing it every time?

Isn’t this just a simple queue with a limit of 10m for both the devices? Or am I not understanding correctly. So if both are online they will share the 10m equally. But if only one is online they take the full 10m.

if both of them are online, they will have only max_limit of 5m, nobody shares between 10m, because i give them only 5.
example, so if pc1 consumes 3m, pc2 can only consume 5m, not 7m. that is if both of them are online.

but if either of them is online they will have the 10m.
example, pc1 is online, pc2 is offline. pc1 consumes 10m. when pc2 online, pc1 will gradually get low to 5m.

So the ask is:

PC1 and PC2 online → Total bandwidth between the 2 is 5Mbps
PC1 or PC2 online → Total bandwidth for 1 is 10Mbps

So the PCs get double the speed when the other is not online. I’m really curious why?

So the ask is:

PC1 and PC2 online → Total bandwidth between the 2 is 5Mbps
PC1 or PC2 online → Total bandwidth for 1 is 10Mbps

So the PCs get double the speed when the other is not online. I’m really curious why?

PC1 and PC2 online > total bandwith = 10m*

why? im from a country where internet is scarce. ive got 10m max bandwith for now. PC1 is playing games. PC2 is downloading movies/torrent. i must max-limit them to 5m , so that PC1 will not get high ping. but when PC1 stop playing game or offline. i want PC2 to get the maximum bandwith of 10m.

Parent Q max limit=10Mb
Child Q’s:
Pc1 limit at 5Mb max limit 10Mb
Pc2 same as above.

This way, they each guaranteed 5Mb, if there is spare bandwidth, it will be used which ever device requested it and if only 1 device active, it will have full 10Mb available to it

yes that is the basic parent-child queue.

but what i want is,
if at the same time, PC1 and PC2 device is active, limit-at=1m, max-limit=5m.
if PC1 is active but not PC2 , PC1, max-limit=10m
if PC2 is active but not PC1, PC2 , max-limit=10m

i did this on scheduler only. but it is not enough, there are times where PC1 and PC2 is active but not on schedule.
i think this will fall on the scripting mode.

consider this: when PC1 want 1Mbps and PC2 want 7 Mbps

CZFan’s approach will allow both PC to get the bandwidth they needed

Yours, however, because both PCs are active, the queue system would give PC1 1Mpbs and limit PC2 to 5Mbps, while there are 4 Mbps that you are paying for with your hard-earned cash, is doing nothing