git: sbin/usched: Use uint64_t for cpu#

Tomohiro Kusumi kusumi.tomohiro at
Tue May 19 08:51:42 PDT 2015

I'm trying to add better dfly support for fio (which was originally written
for linux kernel) since he accepts these non-linux stuff that I've sent so

CPU affinity is one of the things that the fio has no support on dfly,
while it does support on freebsd (and obviously linux), however it seems
usched_set(2) may need some enhancement to fully support fio.

I'll ask Matt and Sephe and others if I ever try to make any change to this
syscall's feature and/or interface, but providing similar interface as
linux or freebsd may provide better support for some userspace programs
that require cpu affinity control like fio.

2015-05-19 23:40 GMT+09:00 Sepherosa Ziehau <sepherosa at>:

> On Tue, May 19, 2015 at 9:48 PM, Tomohiro Kusumi
> <tkusumi at> wrote:
> >
> > commit e6242c1aeaa1aebf9488d08395ef4e00d8210e76
> > Author: Tomohiro Kusumi <kusumi.tomohiro at>
> > Date:   Sun May 17 23:25:07 2015 +0900
> >
> >     sbin/usched: Use uint64_t for cpu#
> >
> >     - Use uint64_t for 64 cpus(mask) instead of unsigned long.
> I think freebsd's way of specifying cpusets is more extensible:
> -c a-b -c x-y ...
> Maybe we should change usched to accept cpusets.
> Thanks,
> sephe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Commits mailing list