Re: git: d9d5f2c042a5 - main - cpuset: add --count

2023-02-16 Thread Alexey Dokuchaev
On Thu, Feb 16, 2023 at 06:01:32PM +, Jessica Clarke wrote: > On 5 Feb 2023, at 17:28, Alexey Dokuchaev wrote: > > ... > > I was wondering whether we need both of these sysctls: > > > > $ sysctl hw.ncpu > > hw.ncpu: 2 > > $ sysctl kern.smp.cpus > > kern.smp.cpus: 2 > > One prints mp_ncpus, t

Re: git: d9d5f2c042a5 - main - cpuset: add --count [changed/broken command line parsing]

2023-02-16 Thread Mateusz Guzik
On 2/15/23, Mark Millard wrote: > On Feb 14, 2023, at 23:08, Mateusz Guzik wrote: > >> On 2/15/23, Mark Millard wrote: >>> Mateusz Guzik wrote on >>> Date: Sat, 04 Feb 2023 17:51:27 UTC : >>> The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?

Re: git: d9d5f2c042a5 - main - cpuset: add --count

2023-02-16 Thread Mateusz Guzik
On 2/16/23, Jan Beich wrote: > Mateusz Guzik writes: > >> +.Pp >> +The long options are as follows: >> +.Bl -tag -width ".Fl -count" >> +.It Fl -count >> +Count the number of hardware threads included in the set. Requires >> +.Fl g >> +and >> +.Fl p >> +flags. >> +.El > > --count appears to repor

Re: git: d9d5f2c042a5 - main - cpuset: add --count

2023-02-16 Thread Jessica Clarke
On 5 Feb 2023, at 17:28, Alexey Dokuchaev wrote: > > On Sun, Feb 05, 2023 at 04:42:16PM +0100, Mateusz Guzik wrote: >> On 2/5/23, Alexey Dokuchaev wrote: >>> On Sat, Feb 04, 2023 at 05:51:27PM +, Mateusz Guzik wrote: commit d9d5f2c042a51a9f0dd69eb1fc349efd81ffa483 cpuset: ad

Re: git: d9d5f2c042a5 - main - cpuset: add --count

2023-02-16 Thread Jan Beich
Mateusz Guzik writes: > +.Pp > +The long options are as follows: > +.Bl -tag -width ".Fl -count" > +.It Fl -count > +Count the number of hardware threads included in the set. Requires > +.Fl g > +and > +.Fl p > +flags. > +.El --count appears to report total number of "hardware threads" instead o

Re: git: d9d5f2c042a5 - main - cpuset: add --count [changed/broken command line parsing]

2023-02-14 Thread Mark Millard
On Feb 14, 2023, at 23:08, Mateusz Guzik wrote: > On 2/15/23, Mark Millard wrote: >> Mateusz Guzik wrote on >> Date: Sat, 04 Feb 2023 17:51:27 UTC : >> >>> The branch main has been updated by mjg: >>> >>> URL: >>> https://cgit.FreeBSD.org/src/commit/?id=d9d5f2c042a51a9f0dd69eb1fc349efd81ffa48

Re: git: d9d5f2c042a5 - main - cpuset: add --count [changed/broken command line parsing]

2023-02-14 Thread Mateusz Guzik
On 2/15/23, Mark Millard wrote: > Mateusz Guzik wrote on > Date: Sat, 04 Feb 2023 17:51:27 UTC : > >> The branch main has been updated by mjg: >> >> URL: >> https://cgit.FreeBSD.org/src/commit/?id=d9d5f2c042a51a9f0dd69eb1fc349efd81ffa483 >> >> commit d9d5f2c042a51a9f0dd69eb1fc349efd81ffa483 >> Au

RE: git: d9d5f2c042a5 - main - cpuset: add --count [changed/broken command line parsing]

2023-02-14 Thread Mark Millard
Mateusz Guzik wrote on Date: Sat, 04 Feb 2023 17:51:27 UTC : > The branch main has been updated by mjg: > > URL: > https://cgit.FreeBSD.org/src/commit/?id=d9d5f2c042a51a9f0dd69eb1fc349efd81ffa483 > > commit d9d5f2c042a51a9f0dd69eb1fc349efd81ffa483 > Author: Mateusz Guzik > AuthorDate: 2023-02

Re: git: d9d5f2c042a5 - main - cpuset: add --count

2023-02-05 Thread Alexey Dokuchaev
On Sun, Feb 05, 2023 at 04:42:16PM +0100, Mateusz Guzik wrote: > On 2/5/23, Alexey Dokuchaev wrote: > > On Sat, Feb 04, 2023 at 05:51:27PM +, Mateusz Guzik wrote: > >> commit d9d5f2c042a51a9f0dd69eb1fc349efd81ffa483 > >> > >> cpuset: add --count > >> > >> Can be used to count the number of

Re: git: d9d5f2c042a5 - main - cpuset: add --count

2023-02-05 Thread Mateusz Guzik
On 2/5/23, Alexey Dokuchaev wrote: > On Sat, Feb 04, 2023 at 05:51:27PM +, Mateusz Guzik wrote: >> commit d9d5f2c042a51a9f0dd69eb1fc349efd81ffa483 >> >> cpuset: add --count >> >> Can be used to count the number of hardware threads in the cpu set. >> >> For example: [...] >> >> The inte

Re: git: d9d5f2c042a5 - main - cpuset: add --count

2023-02-04 Thread Alexey Dokuchaev
On Sat, Feb 04, 2023 at 05:51:27PM +, Mateusz Guzik wrote: > commit d9d5f2c042a51a9f0dd69eb1fc349efd81ffa483 > > cpuset: add --count > > Can be used to count the number of hardware threads in the cpu set. > > For example: [...] > > The intent is to replace calls to sysctl hw.ncpu an

Re: git: d9d5f2c042a5 - main - cpuset: add --count

2023-02-04 Thread Steffen Nurpmeso
Mateusz Guzik wrote in : |On 2/4/23, Steffen Nurpmeso wrote: |> Mateusz Guzik wrote in |> <202302041751.314hprrn042...@gitrepo.freebsd.org>: |>|The branch main has been updated by mjg: |>| |>|URL: https://cgit.FreeBSD.org/src/commit/?id=d9d5f2c042a51a9f0dd69eb1fc3\ |>|49efd81ffa483 |>|

Re: git: d9d5f2c042a5 - main - cpuset: add --count

2023-02-04 Thread Mateusz Guzik
On 2/4/23, Steffen Nurpmeso wrote: > Mateusz Guzik wrote in > <202302041751.314hprrn042...@gitrepo.freebsd.org>: > |The branch main has been updated by mjg: > | > |URL: https://cgit.FreeBSD.org/src/commit/?id=d9d5f2c042a51a9f0dd69eb1fc3\ > |49efd81ffa483 > | > |commit d9d5f2c042a51a9f0dd69e

Re: git: d9d5f2c042a5 - main - cpuset: add --count

2023-02-04 Thread Steffen Nurpmeso
Mateusz Guzik wrote in <202302041751.314hprrn042...@gitrepo.freebsd.org>: |The branch main has been updated by mjg: | |URL: https://cgit.FreeBSD.org/src/commit/?id=d9d5f2c042a51a9f0dd69eb1fc3\ |49efd81ffa483 | |commit d9d5f2c042a51a9f0dd69eb1fc349efd81ffa483 |Author: Mateusz Guzik |Au