Re: instance not able to allocate LargePages
Date: Mon, 28 Aug 2023 11:43:37 +0200
Message-ID: <CAKnHwtfRVGiMUB9f57RpJnickq2X+bmOhj-N2BB+j0yakZ_qGA_at_mail.gmail.com>
If by service you mean SystemD, then all shell limits must be specified in
the SystemD service unit file. SystemD ignores /etc/security/limits.conf
and /etc/security/limits.d/*
This is what I have in SystemD unit file that starts Oracle single instance
database (your issue should be about LimitMEMLOCK):
[Service]
On Mon, 28 Aug 2023 at 11:20, Laurentiu Oprea <laurentiu.oprea06_at_gmail.com>
wrote:
> Dear all,
# Limits need to be here since /etc/security/limits.d/* is not applied by
SystemD
LimitNPROC=131072
LimitNOFILE=131072
LimitMEMLOCK=infinity
>
> I have a strange situation where if a instance is started by a script
> called via a service after OS boot is failing to allocate the HugePages:
>
> PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s)
>
> 2048K 1942 1818 0 ORA-27125
>
> Reason for not supporting certain system pagesizes:
>
> 4K - Large pagesizes only
>
>
> looks like by whatever reason don't have permissions.
>
>
> After that if I`m connecting to the server and manually trying to start
> the instance all is working fine.
>
>
> Anyone have any idea if the linux service requires something special to be
> able to access the hugepages?
>
>
> Appreciate your help.
>
-- Ilmar Kerm -- http://www.freelists.org/webpage/oracle-lReceived on Mon Aug 28 2023 - 11:43:37 CEST