Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-16 Thread Benoit Lecocq
On 14/11/2019 21:52, Klemens Nanni wrote: On Mon, Nov 11, 2019 at 09:06:59PM +0200, Jeremie Courreges-Anglas wrote: If people like this approach I can try to push it upstream, along with the ncpu diff. Using sysconf(3) seems simple and sane. OK kn Yes, ok benoit@

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-14 Thread Klemens Nanni
On Mon, Nov 11, 2019 at 09:06:59PM +0200, Jeremie Courreges-Anglas wrote: > > If people like this approach I can try to push it upstream, along with > > the ncpu diff. Using sysconf(3) seems simple and sane. OK kn

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-11 Thread Jeremie Courreges-Anglas
On Thu, Nov 07 2019, Jeremie Courreges-Anglas wrote: > Back to this, > > On Tue, Nov 05 2019, Kurt Miller wrote: >> On Tue, 2019-11-05 at 09:17 +0100, Jan Beich wrote: >>> Jeremie Courreges-Anglas writes: >>> >>> > >>> > ++#elif defined(HAVE_BSD_SYSCTL) && (defined(HW_MEMSIZE) || >>> > define

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-07 Thread Jeremie Courreges-Anglas
Back to this, On Tue, Nov 05 2019, Kurt Miller wrote: > On Tue, 2019-11-05 at 09:17 +0100, Jan Beich wrote: >> Jeremie Courreges-Anglas writes: >> >> > >> > ++#elif defined(HAVE_BSD_SYSCTL) && (defined(HW_MEMSIZE) || >> > defined(HW_PHYSMEM64)) >> > +  int64_t physical_memory; >> HW_MEMSIZE

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-05 Thread Kurt Miller
On Tue, 2019-11-05 at 15:48 +0100, Jan Beich wrote: > Kurt Miller writes: > > > > > On Tue, 2019-11-05 at 14:44 +0100, Jan Beich wrote: > > > > > > > > Kurt Miller writes: > > > > > > > > > > > > > > > On Tue, 2019-11-05 at 09:17 +0100, Jan Beich wrote: > > > > > > > > > > > > > > > > >

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-05 Thread Jan Beich
Kurt Miller writes: > On Tue, 2019-11-05 at 14:44 +0100, Jan Beich wrote: > >> Kurt Miller writes: >> >> > >> > On Tue, 2019-11-05 at 09:17 +0100, Jan Beich wrote: >> > >> > > >> > > Jeremie Courreges-Anglas writes: >> > > >> > > > >> > > > >> > > > ++#elif defined(HAVE_BSD_SYSCTL) && (d

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-05 Thread Kurt Miller
On Tue, 2019-11-05 at 14:44 +0100, Jan Beich wrote: > Kurt Miller writes: > > > > > On Tue, 2019-11-05 at 09:17 +0100, Jan Beich wrote: > > > > > > > > Jeremie Courreges-Anglas writes: > > > > > > > > > > > > > > > ++#elif defined(HAVE_BSD_SYSCTL) && (defined(HW_MEMSIZE) || > > > > define

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-05 Thread Jan Beich
Kurt Miller writes: > On Tue, 2019-11-05 at 09:17 +0100, Jan Beich wrote: > >> Jeremie Courreges-Anglas writes: >> >> > >> > ++#elif defined(HAVE_BSD_SYSCTL) && (defined(HW_MEMSIZE) || >> > defined(HW_PHYSMEM64)) >> > +  int64_t physical_memory; >> HW_MEMSIZE and HW_PHYSMEM64 return uint64_t,

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-05 Thread Kurt Miller
On Tue, 2019-11-05 at 09:17 +0100, Jan Beich wrote: > Jeremie Courreges-Anglas writes: > > > > > ++#elif defined(HAVE_BSD_SYSCTL) && (defined(HW_MEMSIZE) || > > defined(HW_PHYSMEM64)) > > +  int64_t physical_memory; > HW_MEMSIZE and HW_PHYSMEM64 return uint64_t, not int64_t. > > > > > ++#eli

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-05 Thread Jan Beich
Jeremie Courreges-Anglas writes: > ++#elif defined(HAVE_BSD_SYSCTL) && (defined(HW_MEMSIZE) || > defined(HW_PHYSMEM64)) > + int64_t physical_memory; HW_MEMSIZE and HW_PHYSMEM64 return uint64_t, not int64_t. > ++#elif defined(HAVE_BSD_SYSCTL) && defined(HW_PHYSMEM)) > ++int physical_mem

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-03 Thread Klemens Nanni
On Sun, Nov 03, 2019 at 02:22:19PM +, Stuart Henderson wrote: > I think both should be left, FreeBSD doesn't have HW_PHYSMEM64. I see, thanks. Just looked and as presumed NetBSD has PHYSMEM64 while Dragonfly does not just like FreeBSD, so the seems fine as is.

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-03 Thread Jeremie Courreges-Anglas
On Sun, Nov 03 2019, Stuart Henderson wrote: > On 2019/11/03 14:57, Klemens Nanni wrote: >> On Sun, Nov 03, 2019 at 12:17:13PM +0100, Jeremie Courreges-Anglas wrote: >> > I'm sitting on a few changes in devel/git since some time already. >> Thanks, I never noticed these until now. >> >> > - nghtt

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-03 Thread Stuart Henderson
On 2019/11/03 14:57, Klemens Nanni wrote: > On Sun, Nov 03, 2019 at 12:17:13PM +0100, Jeremie Courreges-Anglas wrote: > > I'm sitting on a few changes in devel/git since some time already. > Thanks, I never noticed these until now. > > > - nghttp2 should not be listed here IMO. It really is a dep

Re: devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-03 Thread Klemens Nanni
On Sun, Nov 03, 2019 at 12:17:13PM +0100, Jeremie Courreges-Anglas wrote: > I'm sitting on a few changes in devel/git since some time already. Thanks, I never noticed these until now. > - nghttp2 should not be listed here IMO. It really is a dep of libcurl, > git itself doesn't use directly the

devel/git: cpu and memory tracking, LIB_DEPENDS

2019-11-03 Thread Jeremie Courreges-Anglas
I'm sitting on a few changes in devel/git since some time already. - nghttp2 should not be listed here IMO. It really is a dep of libcurl, git itself doesn't use directly the nghttp API. - sysctl(HW_PHYSMEM) wants an int. That doesn't work well if you have a decent amount or ram. What d