Re: instance not able to allocate LargePages

From: Laurentiu Oprea <laurentiu.oprea06_at_gmail.com>
Date: Mon, 28 Aug 2023 21:10:12 +0300
Message-ID: <CA+riqSWVwY31rtDB+O6XVce2cwgcU5qOTGn6Wu0Q=M6iK7cqUg_at_mail.gmail.com>



Thank you for your response. Indeed this was the problem.

On Mon, Aug 28, 2023, 12:43 PM Ilmar Kerm <ilmar.kerm_at_gmail.com> wrote:

> 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]
> # Limits need to be here since /etc/security/limits.d/* is not applied by
> SystemD
> LimitNPROC=131072
> LimitNOFILE=131072
> LimitMEMLOCK=infinity
>
>
> On Mon, 28 Aug 2023 at 11:20, Laurentiu Oprea <laurentiu.oprea06_at_gmail.com>
> wrote:
>
>> Dear all,
>>
>> 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-l
Received on Mon Aug 28 2023 - 20:10:12 CEST

Original text of this message