Project

General

Profile

Actions

action #135722

closed

[qe-core] Sysctl: unexpected value 15064/ expected 15070

Added by dimstar over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2023-09-14
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Observation

Test messages # Sysctl_fs_inotify_max_user_watches

failure:

expected: 15070
returned: 15064
invalid value: '15064', expected '15070'

The strange thing here is that the test started failing on snapshot 0910 - but we only had a new kernel in 0911 (update to 6.5.2)

openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-sys-param-check@64bit fails in
Sysctl

Test suite description

RAM size is set to 2048, some kernel parameters change with total RAM https://github.com/openSUSE/sys-param-check

Reproducible

Fails since (at least) Build 20230910

Expected result

Last good: 20230908 (or more recent)

Further details

Always latest result in this scenario: latest

Actions #1

Updated by maritawerner about 1 year ago

@acarvajal is that for your team? And if yes, how do I label it? With this label:[sap]? or [qe-sap]

Actions #2

Updated by acarvajal about 1 year ago

maritawerner wrote in #note-1:

@acarvajal is that for your team? And if yes, how do I label it? With this label:[sap]? or [qe-sap]

Hello Marita. No, sys_param_check is handled now by QE-Core.

Actions #3

Updated by maritawerner about 1 year ago

  • Subject changed from Sysctl: unexpected value 15064/ expected 15070 to [qe-core] Sysctl: unexpected value 15064/ expected 15070
Actions #4

Updated by openqa_review about 1 year ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: sys-param-check
https://openqa.opensuse.org/tests/3642278#step/Sysctl/1

To prevent further reminder comments one of the following options should be followed:

  1. The test scenario is fixed by applying the bug fix to the tested product or the test is adjusted
  2. The openQA job group is moved to "Released" or "EOL" (End-of-Life)
  3. The bugref in the openQA scenario is removed or replaced, e.g. label:wontfix:boo1234

Expect the next reminder at the earliest in 28 days if nothing changes in this ticket.

Actions #5

Updated by josegomezr about 1 year ago

  • Assignee set to josegomezr

Investigating this one.

Actions #6

Updated by josegomezr about 1 year ago

The value of fs.inotify_max_user_watches seems to vary across runs

fs.inotify_max_user_watches is calculated with:

# CLAMP(num, min, max)
CLAMP(1% of total high ram, 2^13, 2^20)

The total high ram value is reported on /proc/meminfo under LowTotal:
https://github.com/torvalds/linux/blob/b85ea95d086471afb4ad062012a4d73cd328fa86/fs/proc/meminfo.c#L80

Is it possible to rewrite the test to validate the CLAMP min/max and then do a range check of:

APPROX_WATCHES=$((grep LowTotal -m 1 /proc/meminfo | awk '{$2=$2} END {print $2 ? $2 : '819200' }') ) / 100 ))

assert inotify between APPROX_WATCHES -1 and APPROX_WATCHES +

?

Actions #7

Updated by szarate about 1 year ago

  • Tags set to bugbusters
Actions #8

Updated by josegomezr about 1 year ago

Proposal fix: https://github.com/openSUSE/sys-param-check/pull/9

It adds a 0.5% tolerance for the values that relay on RAM so they can vary within that threshold.

And updated the value of vm.max_map_count as per bsc#1214445

Actions #9

Updated by josegomezr about 1 year ago

  • Status changed from New to Feedback
Actions #10

Updated by josegomezr about 1 year ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF