Mojo::...Memory(3pm)
π Mojo::IOLoop::ReadWriteProcess::CGroup::v1::Memory β CGroups v1 Memory Controller π
okay bestie, welcome to the Memory Controller page of the Mojo::...Memory(3pm) manual π this one is short and sweet but it's lowkey important so let's get into it, fr fr.
β¨ SYNOPSIS β¨
look at this, it's giving minimal and iconic π
use Mojo::IOLoop::ReadWriteProcess::CGroup::v1;
my $cgroup = Mojo::IOLoop::ReadWriteProcess::CGroup::v1->new( name => "test" );
$cgroup->memory->current;
like yes, that's it, that's the whole vibe πΈ you spin up a Mojo::IOLoop::ReadWriteProcess::CGroup::v1 with a name of "test", then you poke at its memory and ask for current. slay. β¨
π¦ DESCRIPTION π¦
okay so listen up because this part is important π«Ά
This module uses features that are only available on Linux, and requires cgroups and capability for unshare syscalls to achieve pid isolation.
bestie. Linux only. no cap. π§ if you're not on Linux this is not your era, and you also need cgroups and the capability to do unshare syscalls, because that's how the pid isolation happens. iykyk π
π METHODS π
Mojo::IOLoop::ReadWriteProcess::CGroup::v1::Memory inherits all methods from Mojo::Base and implements the following new ones.
not me realising this section is literally just the inheritance flex π so basically: everything Mojo::Base gives you? you got it. the "new ones" it mentions are... well, that's what the page says, bestie, and we do not make stuff up around here. periodt. π
π 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 go forth and remix, it's Perl-licensed, same terms as Perl itself, you're free to redistribute and/or modify π
π AUTHOR π
Ettore Di Giacinto <edigiacinto@suse.com>
the icon, the legend, the main character π if you have thoughts, that's the inbox.
and that's the whole page, bestie, we ate and left no crumbs π this was the Mojo::...Memory(3pm) page β User Contributed Perl Documentation, generated for perl v5.42.0, dated 2025-07-25 π§ love u, go isolate some pids responsibly π
π¦ where this page comes from
- fedora 43: perl-Mojo-IOLoop-ReadWriteProcess 1.1.0-2.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms