Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2021-02-10 Thread Balbir Singh
> > Still not convinced about it, I played around with it. The reason we did not > > use ioctl in the first place is to get the benefits of TLA with netlink, > > which > For monitoring long-time-running process the ioctl can meet our requirement, > it is more simple than netlink when we get the

Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2021-02-10 Thread Weiping Zhang
On Mon, Feb 8, 2021 at 1:55 PM Balbir Singh wrote: > > On Fri, Feb 05, 2021 at 10:43:02AM +0800, Weiping Zhang wrote: > > On Fri, Feb 5, 2021 at 8:08 AM Balbir Singh wrote: > > > > > > On Thu, Feb 04, 2021 at 10:37:20PM +0800, Weiping Zhang wrote: > > > > On Thu, Feb 4, 2021 at 6:20 PM Balbir

Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2021-02-07 Thread Balbir Singh
On Fri, Feb 05, 2021 at 10:43:02AM +0800, Weiping Zhang wrote: > On Fri, Feb 5, 2021 at 8:08 AM Balbir Singh wrote: > > > > On Thu, Feb 04, 2021 at 10:37:20PM +0800, Weiping Zhang wrote: > > > On Thu, Feb 4, 2021 at 6:20 PM Balbir Singh wrote: > > > > > > > > On Sun, Jan 31, 2021 at 05:16:47PM

Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2021-02-04 Thread Weiping Zhang
On Fri, Feb 5, 2021 at 8:08 AM Balbir Singh wrote: > > On Thu, Feb 04, 2021 at 10:37:20PM +0800, Weiping Zhang wrote: > > On Thu, Feb 4, 2021 at 6:20 PM Balbir Singh wrote: > > > > > > On Sun, Jan 31, 2021 at 05:16:47PM +0800, Weiping Zhang wrote: > > > > On Wed, Jan 27, 2021 at 7:13 PM Balbir

Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2021-02-04 Thread Balbir Singh
On Thu, Feb 04, 2021 at 10:37:20PM +0800, Weiping Zhang wrote: > On Thu, Feb 4, 2021 at 6:20 PM Balbir Singh wrote: > > > > On Sun, Jan 31, 2021 at 05:16:47PM +0800, Weiping Zhang wrote: > > > On Wed, Jan 27, 2021 at 7:13 PM Balbir Singh > > > wrote: > > > > > > > > On Fri, Jan 22, 2021 at

Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2021-02-04 Thread Weiping Zhang
On Thu, Feb 4, 2021 at 6:20 PM Balbir Singh wrote: > > On Sun, Jan 31, 2021 at 05:16:47PM +0800, Weiping Zhang wrote: > > On Wed, Jan 27, 2021 at 7:13 PM Balbir Singh wrote: > > > > > > On Fri, Jan 22, 2021 at 10:07:50PM +0800, Weiping Zhang wrote: > > > > Hello Balbir Singh, > > > > > > > >

Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2021-02-04 Thread Balbir Singh
On Sun, Jan 31, 2021 at 05:16:47PM +0800, Weiping Zhang wrote: > On Wed, Jan 27, 2021 at 7:13 PM Balbir Singh wrote: > > > > On Fri, Jan 22, 2021 at 10:07:50PM +0800, Weiping Zhang wrote: > > > Hello Balbir Singh, > > > > > > Could you help review this patch, thanks > > > > > > On Mon, Dec 28,

Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2021-01-31 Thread Weiping Zhang
On Wed, Jan 27, 2021 at 7:13 PM Balbir Singh wrote: > > On Fri, Jan 22, 2021 at 10:07:50PM +0800, Weiping Zhang wrote: > > Hello Balbir Singh, > > > > Could you help review this patch, thanks > > > > On Mon, Dec 28, 2020 at 10:10 PM Weiping Zhang wrote: > > > > > > Hi David, > > > > > > Could

Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2021-01-27 Thread Balbir Singh
On Fri, Jan 22, 2021 at 10:07:50PM +0800, Weiping Zhang wrote: > Hello Balbir Singh, > > Could you help review this patch, thanks > > On Mon, Dec 28, 2020 at 10:10 PM Weiping Zhang wrote: > > > > Hi David, > > > > Could you help review this patch ? > > > > thanks > > > > On Fri, Dec 18, 2020 at

Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2021-01-27 Thread Balbir Singh
On Mon, Dec 28, 2020 at 10:10:03PM +0800, Weiping Zhang wrote: > Hi David, > > Could you help review this patch ? > > thanks I've got it on my review list, thanks for the ping! You should hear back from me soon. Balbir Singh. > > On Fri, Dec 18, 2020 at 1:24 AM Weiping Zhang > wrote: > > >

Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2021-01-22 Thread Weiping Zhang
Hello Balbir Singh, Could you help review this patch, thanks On Mon, Dec 28, 2020 at 10:10 PM Weiping Zhang wrote: > > Hi David, > > Could you help review this patch ? > > thanks > > On Fri, Dec 18, 2020 at 1:24 AM Weiping Zhang > wrote: > > > > If a program needs monitor lots of process's

Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2020-12-28 Thread Weiping Zhang
Hi David, Could you help review this patch ? thanks On Fri, Dec 18, 2020 at 1:24 AM Weiping Zhang wrote: > > If a program needs monitor lots of process's status, it needs two > syscalls for every process. The first one is telling kernel which > pid/tgid should be monitored by send a

[RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2020-12-17 Thread Weiping Zhang
If a program needs monitor lots of process's status, it needs two syscalls for every process. The first one is telling kernel which pid/tgid should be monitored by send a command(write socket) to kernel. The second one is read the statistics by read socket. This patch add a new interface