Re: [PATCH v2] zram: auto add/del devices on demand

2014-07-17 Thread Timofey Titovets
On 07/17/2014 06:19 PM, Timofey Titovets wrote: On 07/17/2014 05:17 PM, Jerome Marchand wrote: Looks like it: $ cat conctest.sh #! /bin/sh modprobe zram while true; do for i in `seq 1 10`; do echo 10485760 > /sys/block/zram0/disksize& echo 1 > /sys/block/zram0/reset& done

Re: [PATCH v2] zram: auto add/del devices on demand

2014-07-17 Thread Timofey Titovets
On 07/17/2014 06:26 PM, Jerome Marchand wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/17/2014 05:01 PM, Timofey Titovets wrote: On 07/17/2014 05:04 PM, Sergey Senozhatsky wrote: On (07/17/14 15:27), Timofey Titovets wrote: This add supporting of autochange count of zram devic

Re: [PATCH v2] zram: auto add/del devices on demand

2014-07-17 Thread Jerome Marchand
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/17/2014 05:01 PM, Timofey Titovets wrote: > > > On 07/17/2014 05:04 PM, Sergey Senozhatsky wrote: >> On (07/17/14 15:27), Timofey Titovets wrote: >>> This add supporting of autochange count of zram devices on >>> demand, like loop devices; This

Re: [PATCH v2] zram: auto add/del devices on demand

2014-07-17 Thread Timofey Titovets
On 07/17/2014 05:17 PM, Jerome Marchand wrote: Looks like it: $ cat conctest.sh #! /bin/sh modprobe zram while true; do for i in `seq 1 10`; do echo 10485760 > /sys/block/zram0/disksize& echo 1 > /sys/block/zram0/reset& done done $ sudo ./conctest.sh [ 51.535387]

Re: [PATCH v2] zram: auto add/del devices on demand

2014-07-17 Thread Jerome Marchand
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/17/2014 04:04 PM, Sergey Senozhatsky wrote: > On (07/17/14 15:27), Timofey Titovets wrote: >> This add supporting of autochange count of zram devices on >> demand, like loop devices; This working by following rules: - >> Always save minimum devic

[PATCH v2] zram: auto add/del devices on demand

2014-07-17 Thread Timofey Titovets
On 07/17/2014 05:04 PM, Sergey Senozhatsky wrote: On (07/17/14 15:27), Timofey Titovets wrote: This add supporting of autochange count of zram devices on demand, like loop devices; This working by following rules: - Always save minimum devices count specified by num_device (can be spec

Re: [PATCH v2] zram: auto add/del devices on demand

2014-07-17 Thread Sergey Senozhatsky
On (07/17/14 15:27), Timofey Titovets wrote: > This add supporting of autochange count of zram devices on demand, like loop > devices; > This working by following rules: > - Always save minimum devices count specified by num_device (can be > specified while kernel module loading) > - if

[PATCH v2] zram: auto add/del devices on demand

2014-07-17 Thread Timofey Titovets
From: Timofey Titovets This add supporting of autochange count of zram devices on demand, like loop devices; This working by following rules: - Always save minimum devices count specified by num_device (can be specified while kernel module loading) - if last device already using add