Skip to content

[Bug]: The value of the ulimit parameter "open files" must not be less than 20000 #225

@longdafeng

Description

@longdafeng

Describe the bug

pref deployed
Get local repositories ok
Load cluster param plugin ok
Open ssh connection ok
[WARN] OBD-1011: (127.0.0.1) The recommended value of fs.aio-max-nr is 1048576 (Current value: 65536)
[ERROR] OBD-1007: (127.0.0.1) The value of the ulimit parameter "open files" must not be less than 20000 (Current value: 1024), Please execute echo -e "* soft nofile 20000\n* hard nofile 20000" >> /etc/security/limits.d/nofile.conf as root in 127.0.0.1. if it dosen't work, please check whether UsePAM is yes in /etc/ssh/sshd_config.
[WARN] OBD-1007: (127.0.0.1) The recommended number of stack size is unlimited (Current value: 8192)
[WARN] OBD-1017: (127.0.0.1) The value of the "vm.max_map_count" must be within [327600, 1310720] (Current value: 65530, Recommended value: 655360)
[WARN] OBD-2000: (127.0.0.1) not enough memory. (Free: 845M, Need: 11G)
[WARN] OBD-1012: (127.0.0.1) clog and data use the same disk (/home)

Environment

os version: CentOS-9-Stream-x64
ob version: 4.3.5.4

Linux kvm-longda 5.14.0-617.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Sep 15 21:46:13 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Fast reproduce steps

obd pref

Expected behavior

No response

Actual behavior

No response

Additional context

[longda@kvm-longda ~]$ cat /etc/security/limits.d/nofile.conf

  • soft nofile 20000
  • hard nofile 20000
    [longda@kvm-longda ~]$ tail /etc/security/limits.d/nofile.conf
  • soft nofile 20000
  • hard nofile 20000
    [longda@kvm-longda ~]$ tail /etc/security/limits.d/
    25-pw-rlimits.conf nofile.conf
    [longda@kvm-longda ~]$ tail /etc/security/limits.d/25-pw-rlimits.conf

If the group is not automatically created, the match rule will never be true

and this file will have no effect.

@PipeWire - rtprio 95
@PipeWire - nice -19
@PipeWire - memlock 4194304

  • soft nofile 20000
  • hard nofile 20000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions