Re: [PATCH] binder: Use kmem_cache for binder_thread

2019-09-02 Thread Peikan Tsai
On Fri, Aug 30, 2019 at 08:39:43AM +0200, Greg KH wrote: > On Fri, Aug 30, 2019 at 02:59:01AM +0800, Peikan Tsai wrote: > > On Thu, Aug 29, 2019 at 05:27:22PM +0200, Christian Brauner wrote: > > > On Thu, Aug 29, 2019 at 09:53:59AM -0400, Joel Fernandes wrote: > > > > On Thu, Aug 29, 2019 at

Re: [PATCH] binder: Use kmem_cache for binder_thread

2019-08-30 Thread Christian Brauner
On Fri, Aug 30, 2019 at 08:38:51AM +0200, Greg KH wrote: > On Thu, Aug 29, 2019 at 05:27:22PM +0200, Christian Brauner wrote: > > On Thu, Aug 29, 2019 at 09:53:59AM -0400, Joel Fernandes wrote: > > > On Thu, Aug 29, 2019 at 08:42:29AM +0200, Greg KH wrote: > > > > On Thu, Aug 29, 2019 at

Re: [PATCH] binder: Use kmem_cache for binder_thread

2019-08-30 Thread Greg KH
On Fri, Aug 30, 2019 at 02:59:01AM +0800, Peikan Tsai wrote: > On Thu, Aug 29, 2019 at 05:27:22PM +0200, Christian Brauner wrote: > > On Thu, Aug 29, 2019 at 09:53:59AM -0400, Joel Fernandes wrote: > > > On Thu, Aug 29, 2019 at 08:42:29AM +0200, Greg KH wrote: > > > > On Thu, Aug 29, 2019 at

Re: [PATCH] binder: Use kmem_cache for binder_thread

2019-08-30 Thread Greg KH
On Thu, Aug 29, 2019 at 05:27:22PM +0200, Christian Brauner wrote: > On Thu, Aug 29, 2019 at 09:53:59AM -0400, Joel Fernandes wrote: > > On Thu, Aug 29, 2019 at 08:42:29AM +0200, Greg KH wrote: > > > On Thu, Aug 29, 2019 at 01:49:53PM +0800, Peikan Tsai wrote: > > [snip] > > > > The allocated

Re: [PATCH] binder: Use kmem_cache for binder_thread

2019-08-29 Thread joel
On August 29, 2019 2:59:01 PM EDT, Peikan Tsai wrote: >On Thu, Aug 29, 2019 at 05:27:22PM +0200, Christian Brauner wrote: >> On Thu, Aug 29, 2019 at 09:53:59AM -0400, Joel Fernandes wrote: >> > On Thu, Aug 29, 2019 at 08:42:29AM +0200, Greg KH wrote: >> > > On Thu, Aug 29, 2019 at 01:49:53PM

Re: [PATCH] binder: Use kmem_cache for binder_thread

2019-08-29 Thread Peikan Tsai
On Thu, Aug 29, 2019 at 05:27:22PM +0200, Christian Brauner wrote: > On Thu, Aug 29, 2019 at 09:53:59AM -0400, Joel Fernandes wrote: > > On Thu, Aug 29, 2019 at 08:42:29AM +0200, Greg KH wrote: > > > On Thu, Aug 29, 2019 at 01:49:53PM +0800, Peikan Tsai wrote: > > [snip] > > > > The allocated

Re: [PATCH] binder: Use kmem_cache for binder_thread

2019-08-29 Thread Christian Brauner
On Thu, Aug 29, 2019 at 09:53:59AM -0400, Joel Fernandes wrote: > On Thu, Aug 29, 2019 at 08:42:29AM +0200, Greg KH wrote: > > On Thu, Aug 29, 2019 at 01:49:53PM +0800, Peikan Tsai wrote: > [snip] > > > The allocated size for each binder_thread is 512 bytes by kzalloc. > > > Because the size of

Re: [PATCH] binder: Use kmem_cache for binder_thread

2019-08-29 Thread Joel Fernandes
On Thu, Aug 29, 2019 at 08:42:29AM +0200, Greg KH wrote: > On Thu, Aug 29, 2019 at 01:49:53PM +0800, Peikan Tsai wrote: [snip] > > The allocated size for each binder_thread is 512 bytes by kzalloc. > > Because the size of binder_thread is fixed and it's only 304 bytes. > > It will save 208 bytes

Re: [PATCH] binder: Use kmem_cache for binder_thread

2019-08-29 Thread Joel Fernandes
On Thu, Aug 29, 2019 at 01:49:53PM +0800, Peikan Tsai wrote: > Hi, > > The allocated size for each binder_thread is 512 bytes by kzalloc. > Because the size of binder_thread is fixed and it's only 304 bytes. > It will save 208 bytes per binder_thread when use create a kmem_cache > for the

Re: [PATCH] binder: Use kmem_cache for binder_thread

2019-08-29 Thread Greg KH
On Thu, Aug 29, 2019 at 01:49:53PM +0800, Peikan Tsai wrote: > Hi, No need for that in a changelog text :) > The allocated size for each binder_thread is 512 bytes by kzalloc. > Because the size of binder_thread is fixed and it's only 304 bytes. > It will save 208 bytes per binder_thread when

[PATCH] binder: Use kmem_cache for binder_thread

2019-08-28 Thread Peikan Tsai
Hi, The allocated size for each binder_thread is 512 bytes by kzalloc. Because the size of binder_thread is fixed and it's only 304 bytes. It will save 208 bytes per binder_thread when use create a kmem_cache for the binder_thread. Signed-off-by: Peikan Tsai --- drivers/android/binder.c | 16