« lib/Mojo/IOLoop/ReadWriteProcess/CGroup.pm
↑ Summary
lib/Mojo/IOLoop/ReadWriteProcess/CGroup/v1/Cpuacct.pm »
| 1 | package Mojo::IOLoop::ReadWriteProcess::CGroup::v1::RDMA; | ||
| 2 | |||
| 3 | 15 | ▶ | use Mojo::Base 'Mojo::IOLoop::ReadWriteProcess::CGroup::v2::RDMA'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | |||
| 6 | 0 | ▶ | has cgroup => sub { Mojo::IOLoop::ReadWriteProcess::CGroup::v1->new }; |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 7 | |||
| 8 | 15 | 1; | |
| 9 | |||
| 10 | =encoding utf-8 | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | Mojo::IOLoop::ReadWriteProcess::CGroup::v2::RDMA - CGroups v2 RDMA Controller | ||
| 15 | |||
| 16 | =head1 SYNOPSIS | ||
| 17 | |||
| 18 | use Mojo::IOLoop::ReadWriteProcess::CGroup::v2; | ||
| 19 | |||
| 20 | my $cgroup = Mojo::IOLoop::ReadWriteProcess::CGroup::v2->new( name => "test" ); | ||
| 21 | |||
| 22 | $cgroup->rdma->current; | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This module uses features that are only available on Linux, | ||
| 27 | and requires cgroups and capability for unshare syscalls to achieve pid isolation. | ||
| 28 | |||
| 29 | =head1 METHODS | ||
| 30 | |||
| 31 | L<Mojo::IOLoop::ReadWriteProcess::CGroup::v2> inherits all methods from L<Mojo::Base> and implements | ||
| 32 | the following new ones. | ||
| 33 | |||
| 34 | =head1 LICENSE | ||
| 35 | |||
| 36 | Copyright (C) Ettore Di Giacinto. | ||
| 37 | |||
| 38 | This library is free software; you can redistribute it and/or modify | ||
| 39 | it under the same terms as Perl itself. | ||
| 40 | |||
| 41 | =head1 AUTHOR | ||
| 42 | |||
| 43 | Ettore Di Giacinto E<lt>edigiacinto@suse.comE<gt> | ||
| 44 | |||
| 45 | =cut | ||