Date: Tue, 29 Jan 2019 00:07:56 +0300 From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: Mark Saad <nonesuch@longcount.org> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: CPU Isolation Message-ID: <1527ee44-334f-641f-cd78-ad2c54f9262d@yandex.ru> In-Reply-To: <e1997066-b924-39ff-af11-7d55dc95d8b0@yandex.ru> References: <CAMXt9NbKwZAwv%2BWJ4yqmeMFmX38n=qjUqJSq4kOq2qdNSVEhHg@mail.gmail.com> <0e842838-e7d0-1b86-e27e-8d1562e70aee@yandex.ru> <CAMXt9NYmKTtNggSVV1bxZsr0L1HWJN1KHRG6bEp_JLyBNAN8PA@mail.gmail.com> <e1997066-b924-39ff-af11-7d55dc95d8b0@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9ZWFQHJjkEuXZHZNvNymjGlzNUfzDLi5a Content-Type: multipart/mixed; boundary="egxmTT6MKsShC0i0JUDpySJ8sFPUxyY39"; protected-headers="v1" From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: Mark Saad <nonesuch@longcount.org> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Message-ID: <1527ee44-334f-641f-cd78-ad2c54f9262d@yandex.ru> Subject: Re: CPU Isolation References: <CAMXt9NbKwZAwv+WJ4yqmeMFmX38n=qjUqJSq4kOq2qdNSVEhHg@mail.gmail.com> <0e842838-e7d0-1b86-e27e-8d1562e70aee@yandex.ru> <CAMXt9NYmKTtNggSVV1bxZsr0L1HWJN1KHRG6bEp_JLyBNAN8PA@mail.gmail.com> <e1997066-b924-39ff-af11-7d55dc95d8b0@yandex.ru> In-Reply-To: <e1997066-b924-39ff-af11-7d55dc95d8b0@yandex.ru> --egxmTT6MKsShC0i0JUDpySJ8sFPUxyY39 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 29.01.2019 00:01, Andrey V. Elsukov wrote: > As r331723 says, now kernel threads belong to cpuset #2, all other > processes belong to cpuset 1. So, you can try to use commands: > Limit all userlevel application to use only CPU cores 0-4: > # cpuset -s 1 -l 0-4 > Limit kernel level threads to use CPU only CPU cores 0-4: > # cpuset -s 2 -l 0-4 > and then dedicate CPUs 5-7 for your application with pid PID > # cpuset -l 5-7 -p PID Sorry, you need to create new set for your application, then you will be able to move it to CPU cores 5-7: # cpuset -C -l 5-7 -p PID --=20 WBR, Andrey V. Elsukov --egxmTT6MKsShC0i0JUDpySJ8sFPUxyY39-- --9ZWFQHJjkEuXZHZNvNymjGlzNUfzDLi5a Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlxPbywACgkQAcXqBBDI oXqjCQf/ZXndvQ54/HNGnGfou/fWlLiMhHG9utm529MvJCeKURSctzci30gqISpc yYyJSIuzfvA8LsUYF9NZ5nNuZ/SDZzLAUE8w75K9INJyVsEMg0RdSKMtYCCR7dva jV6IVfkWDqQ4NWSBX2UbCehLCMs8NK2O0JOeH1+UXW5ElZV2acW40gzZHEbS4w5k Zno0YqxD0HZ3Nj9sgnjAHxJriKDqx8tbAf8H4ABQdImUuX/W+axOPX7mX7E7jiRv ITcRbXEc8dz6nxBwAAyZs2w3nfQTcMcC8UIulEzcnYlrqgCA7M5taN9Q0RAnIK/m ZmkJyocT2LjNb7aA6lySz1oMBDi8zQ== =PVF/ -----END PGP SIGNATURE----- --9ZWFQHJjkEuXZHZNvNymjGlzNUfzDLi5a--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1527ee44-334f-641f-cd78-ad2c54f9262d>