Re: [PATCH 2/2] zram: reduce metadata overhead

2012-11-28 Thread Nitin Gupta
On 11/27/2012 08:22 AM, Jerome Marchand wrote: On 11/27/2012 08:26 AM, Nitin Gupta wrote: For every allocated object, zram maintains the the handle, size, flags and count fields. Of these, only the handle is required since zsmalloc now provides the object size given the handle. The flags field

Re: [PATCH 2/2] zram: reduce metadata overhead

2012-11-28 Thread Nitin Gupta
On 11/27/2012 08:22 AM, Jerome Marchand wrote: On 11/27/2012 08:26 AM, Nitin Gupta wrote: For every allocated object, zram maintains the the handle, size, flags and count fields. Of these, only the handle is required since zsmalloc now provides the object size given the handle. The flags field

Re: [PATCH 2/2] zram: reduce metadata overhead

2012-11-27 Thread Jerome Marchand
On 11/27/2012 08:26 AM, Nitin Gupta wrote: > For every allocated object, zram maintains the the handle, size, > flags and count fields. Of these, only the handle is required > since zsmalloc now provides the object size given the handle. > The flags field was needed only to mark a given page as

Re: [PATCH 2/2] zram: reduce metadata overhead

2012-11-27 Thread Jerome Marchand
On 11/27/2012 08:26 AM, Nitin Gupta wrote: For every allocated object, zram maintains the the handle, size, flags and count fields. Of these, only the handle is required since zsmalloc now provides the object size given the handle. The flags field was needed only to mark a given page as

[PATCH 2/2] zram: reduce metadata overhead

2012-11-26 Thread Nitin Gupta
For every allocated object, zram maintains the the handle, size, flags and count fields. Of these, only the handle is required since zsmalloc now provides the object size given the handle. The flags field was needed only to mark a given page as zero-filled. Instead of this field, we now use an

[PATCH 2/2] zram: reduce metadata overhead

2012-11-26 Thread Nitin Gupta
For every allocated object, zram maintains the the handle, size, flags and count fields. Of these, only the handle is required since zsmalloc now provides the object size given the handle. The flags field was needed only to mark a given page as zero-filled. Instead of this field, we now use an