qgroup limit clearing, was Re: Btrfs progs release 4.1

2015-06-22 Thread Christian Robottom Reis
On Mon, Jun 22, 2015 at 05:00:23PM +0200, David Sterba wrote:
   - qgroup:
 - show: distinguish no limits and 0 limit value
 - limit: ability to clear the limit

I'm using kernel 4.1-rc7 as per:

root@riff:/var/lib/lxc/juju-trusty-lxc-template/rootfs# uname -a
Linux riff 4.1.0-040100rc7-generic #201506080035 SMP Mon Jun 8 04:36:20 UTC 
2015 x86_64 x86_64 x86_64 GNU/Linux

But apart from still having major issues with qgroups (quota enforcement
triggers even when there seems to be plenty of free space) clearing
limits with btrfs-progs 4.1 doesn't revert back to 'none', instead
confusingly setting the quota to 16EiB. Using:

root@riff:/var/lib/lxc/juju-trusty-lxc-template/rootfs# btrfs version
btrfs-progs v4.1

I start from:

qgroupid rfer excl max_rfer max_excl 
     
0/5   2.15GiB  1.95GiB none none 
0/261 1.42GiB  1.11GiB none100.00GiB 
0/265 1.09GiB600.59MiB none100.00GiB 
0/271   793.32MiB366.40MiB none100.00GiB 
0/274   514.96MiB142.92MiB none100.00GiB 

I then issue:

root@riff# btrfs qgroup limit -e none 261 /var
root@riff# btrfs qgroup limit none 261 /var

I end up with:

qgroupid rfer excl max_rfer max_excl 
     
0/5   2.15GiB  1.95GiB none none 
0/261 1.42GiB  1.11GiB 16.00EiB 16.00EiB 
0/265 1.09GiB600.59MiB none100.00GiB 
0/271   793.32MiB366.40MiB none100.00GiB 
0/274   514.96MiB142.92MiB none100.00GiB 

Is that expected?
-- 
Christian Robottom Reis | [+55 16] 3376 0125   | http://async.com.br/~kiko
CEO, Async Open Source  | [+55 16] 9 9112 6430 | http://launchpad.net/~kiko
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in


qgroup limit clearing, was Re: Btrfs progs release 4.1

2015-06-22 Thread Christian Robottom Reis
On Mon, Jun 22, 2015 at 05:00:23PM +0200, David Sterba wrote:
   - qgroup:
 - show: distinguish no limits and 0 limit value
 - limit: ability to clear the limit

I'm using kernel 4.1-rc7 as per:

root@riff:/var/lib/lxc/juju-trusty-lxc-template/rootfs# uname -a
Linux riff 4.1.0-040100rc7-generic #201506080035 SMP Mon Jun 8 04:36:20 UTC 
2015 x86_64 x86_64 x86_64 GNU/Linux

But apart from still having major issues with qgroups (quota enforcement
triggers even when there seems to be plenty of free space) clearing
limits with btrfs-progs 4.1 doesn't revert back to 'none', instead
confusingly setting the quota to 16EiB. Using:

root@riff:/var/lib/lxc/juju-trusty-lxc-template/rootfs# btrfs version
btrfs-progs v4.1

I start from:

qgroupid rfer excl max_rfer max_excl 
     
0/5   2.15GiB  1.95GiB none none 
0/261 1.42GiB  1.11GiB none100.00GiB 
0/265 1.09GiB600.59MiB none100.00GiB 
0/271   793.32MiB366.40MiB none100.00GiB 
0/274   514.96MiB142.92MiB none100.00GiB 

I then issue:

root@riff# btrfs qgroup limit -e none 261 /var
root@riff# btrfs qgroup limit none 261 /var

I end up with:

qgroupid rfer excl max_rfer max_excl 
     
0/5   2.15GiB  1.95GiB none none 
0/261 1.42GiB  1.11GiB 16.00EiB 16.00EiB 
0/265 1.09GiB600.59MiB none100.00GiB 
0/271   793.32MiB366.40MiB none100.00GiB 
0/274   514.96MiB142.92MiB none100.00GiB 

Is that expected?
-- 
Christian Robottom Reis   | [+1] 612 888 4935| http://launchpad.net/~kiko
Canonical VP Hyperscale   | [+55 16] 9 9112 6430
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in


Re: qgroup limit clearing, was Re: Btrfs progs release 4.1

2015-06-22 Thread Tsutomu Itoh

On 2015/06/23 3:18, Christian Robottom Reis wrote:

On Mon, Jun 22, 2015 at 05:00:23PM +0200, David Sterba wrote:

   - qgroup:
 - show: distinguish no limits and 0 limit value
 - limit: ability to clear the limit


I'm using kernel 4.1-rc7 as per:

 root@riff:/var/lib/lxc/juju-trusty-lxc-template/rootfs# uname -a
 Linux riff 4.1.0-040100rc7-generic #201506080035 SMP Mon Jun 8 04:36:20 
UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

But apart from still having major issues with qgroups (quota enforcement
triggers even when there seems to be plenty of free space) clearing
limits with btrfs-progs 4.1 doesn't revert back to 'none', instead
confusingly setting the quota to 16EiB. Using:

 root@riff:/var/lib/lxc/juju-trusty-lxc-template/rootfs# btrfs version
 btrfs-progs v4.1

I start from:

 qgroupid rfer excl max_rfer max_excl
     
 0/5   2.15GiB  1.95GiB none none
 0/261 1.42GiB  1.11GiB none100.00GiB
 0/265 1.09GiB600.59MiB none100.00GiB
 0/271   793.32MiB366.40MiB none100.00GiB
 0/274   514.96MiB142.92MiB none100.00GiB

I then issue:

 root@riff# btrfs qgroup limit -e none 261 /var
 root@riff# btrfs qgroup limit none 261 /var

I end up with:

 qgroupid rfer excl max_rfer max_excl
     
 0/5   2.15GiB  1.95GiB none none
 0/261 1.42GiB  1.11GiB 16.00EiB 16.00EiB
 0/265 1.09GiB600.59MiB none100.00GiB
 0/271   793.32MiB366.40MiB none100.00GiB
 0/274   514.96MiB142.92MiB none100.00GiB

Is that expected?



The following fix is necessary for the kernel to display it correctly.

 [PATCH] btrfs: qgroup: allow user to clear the limitation on qgroup
 http://marc.info/?l=linux-btrfsm=143331495409594w=2

Thanks,
Tsutomu


--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in


Re: qgroup limit clearing, was Re: Btrfs progs release 4.1

2015-06-22 Thread Qu Wenruo



Tsutomu Itoh wrote on 2015/06/23 08:55 +0900:

On 2015/06/23 3:18, Christian Robottom Reis wrote:

On Mon, Jun 22, 2015 at 05:00:23PM +0200, David Sterba wrote:

   - qgroup:
 - show: distinguish no limits and 0 limit value
 - limit: ability to clear the limit


I'm using kernel 4.1-rc7 as per:

 root@riff:/var/lib/lxc/juju-trusty-lxc-template/rootfs# uname -a
 Linux riff 4.1.0-040100rc7-generic #201506080035 SMP Mon Jun 8
04:36:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

But apart from still having major issues with qgroups (quota enforcement
triggers even when there seems to be plenty of free space) clearing
limits with btrfs-progs 4.1 doesn't revert back to 'none', instead
confusingly setting the quota to 16EiB. Using:

 root@riff:/var/lib/lxc/juju-trusty-lxc-template/rootfs# btrfs
version
 btrfs-progs v4.1

I start from:

 qgroupid rfer excl max_rfer max_excl
     
 0/5   2.15GiB  1.95GiB none none
 0/261 1.42GiB  1.11GiB none100.00GiB
 0/265 1.09GiB600.59MiB none100.00GiB
 0/271   793.32MiB366.40MiB none100.00GiB
 0/274   514.96MiB142.92MiB none100.00GiB

I then issue:

 root@riff# btrfs qgroup limit -e none 261 /var
 root@riff# btrfs qgroup limit none 261 /var

I end up with:

 qgroupid rfer excl max_rfer max_excl
     
 0/5   2.15GiB  1.95GiB none none
 0/261 1.42GiB  1.11GiB 16.00EiB 16.00EiB
 0/265 1.09GiB600.59MiB none100.00GiB
 0/271   793.32MiB366.40MiB none100.00GiB
 0/274   514.96MiB142.92MiB none100.00GiB

Is that expected?



The following fix is necessary for the kernel to display it correctly.

  [PATCH] btrfs: qgroup: allow user to clear the limitation on qgroup
  http://marc.info/?l=linux-btrfsm=143331495409594w=2

Thanks,
Tsutomu
I'll send a new pull request containing this patch when we done the full 
test.


The pull will be mainly consisted of small cleanup and bug fixes, so it 
should be quite safe, but I still want to make sure it's completely safe 
anyway.


Thanks,
Qu



--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in

--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in