Mojo::...Cpuset(3pm)

πŸ’– Mojo::IOLoop::ReadWriteProcess::CGroup::v1::Cpuset β€” CGroups v1 Cpuset Controller πŸ’–

okay bestie, so this page is from the User Contributed Perl Documentation corner of the universe, and it's all about Mojo::IOLoop::ReadWriteProcess::CGroup::v1::Cpuset, aka the CGroups v1 Cpuset Controller. yes, the name is a whole mouthful, we're gonna get through it together 🫢


✨ SYNOPSIS ✨

like, here's literally the whole vibe in code form:

use Mojo::IOLoop::ReadWriteProcess::CGroup::v1;

my $cgroup = Mojo::IOLoop::ReadWriteProcess::CGroup::v1->new( name => "test" );

$cgroup->cpuset->current;

that's it. that's the moment. main character energy fr fr πŸ‘‘


🌸 DESCRIPTION 🌸

so here's the tea, and it's a Linux-only tea 🐧:

This module uses features that are only available on Linux, and it requires cgroups plus the capability for unshare syscalls to achieve pid isolation.

translation: no Linux, no cgroups, or no unshare capability β†’ this module is not the one, and it's not gonna pretend otherwise. it's giving very specific requirements, and we respect that πŸ’…


πŸŽ€ METHODS πŸŽ€

Mojo::IOLoop::ReadWriteProcess::CGroup::v1::Cpuset inherits all methods from Mojo::Base and implements the following new ones.

and yes, the "following new ones" list is... literally not here 😭 she inherits everything from Mojo::Base and that's the whole flex. iconic behavior honestly, no notes πŸ’€


πŸ”₯ LICENSE πŸ”₯

Copyright (C) Ettore Di Giacinto.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

so like β€” free software, same terms as Perl itself, go wild but respectfully, periodt ✨


πŸ‘‘ AUTHOR πŸ‘‘

Ettore Di Giacinto <edigiacinto@suse.com>

the legend behind the whole thing, say thank you 🫢


and that's the whole page bestie!! this doc came to you courtesy of perl v5.42.0, dated 2025-07-25 β€” slay, read responsibly, and go isolate some pids πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from