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