I tried
--
lxc.cgroup.memory.limit_in_bytes = 512M
lxc.cgroup.cpuset.cpus = 1
--
and 'htop' show 4 cores and 4 GB of RAM.

Kind of makes sense sense /proc/ is shared.

There is an optional lxcfs (uses FUSE) that offers a different /proc/ to each 
container, but don't really think this is needed with AstLinux.

Lonnie



> On May 24, 2020, at 3:25 PM, Michael Keuter <li...@mksolutions.info> wrote:
> 
> I did some tests and at least the number of cores worked for me. Look at 
> these optional commands:
> 
> https://doc.astlinux.org/userdoc:guest_lxc_container#optional
> 
> The CPU shares are to set priorities between multiple containers. But it 
> needs to be tested more.
> 
> 
>> Am 24.05.2020 um 22:17 schrieb Lonnie Abelbeck <li...@lonnie.abelbeck.com>:
>> 
>> Hi Michael,
>> 
>> Not currently.
>> 
>> For the AstLinux case we did not see much of an issue if the LXC can see all 
>> cores and all RAM.
>> 
>> Lonnie
>> 
>> 
>>> On May 24, 2020, at 3:12 PM, Michael Knill 
>>> <michael.kn...@ipcsolutions.com.au> wrote:
>>> 
>>> Can you limit CPU resources to the  LXC container?
>>> 
>>> Regards
>>> Michael Knill
>>> 
>>> On 24/5/20, 8:08 pm, "Michael Keuter" <li...@mksolutions.info> wrote:
>>> 
>>> 
>>> 
>>>> Am 24.05.2020 um 07:35 schrieb Michael Knill 
>>>> <michael.kn...@ipcsolutions.com.au>:
>>>> 
>>>> Not really knowing anything about LXC Containers, just wondering if I 
>>>> could install Centos and run QueueMetrics on the same box.
>>>> This would be a pretty cool option!
>>>> 
>>>> https://www.queuemetrics.com/install-queuemetrics.jsp
>>>> https://www.queuemetrics.com/blog/2018/12/04/dimensioning-queuemetrics/
>>>> 
>>>> Regards
>>>> Michael Knill
>>> 
>>>  Hi Michael,
>>> 
>>>  in general this should work, but needs to be tested.
>>>  The question is how much diskspace, RAM and CPU power will be needed. All 
>>> is shared with the host.
>>> 
>>>  Michael
> 
> Michael
> 
> http://www.mksolutions.info
> 
> 
> 
> 
> 
> _______________________________________________
> Astlinux-users mailing list
> Astlinux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
> 
> Donations to support AstLinux are graciously accepted via PayPal to 
> pay...@krisk.org.



_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to