Project

General

Profile

Actions

action #99426

closed

openQA Infrastructure (public) - action #97976: [alert] OSD file systems - assets

Asset cleanup takes very long to process 60k files in "other" - suboptimal logging?

Added by okurz about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Motivation

In #97979 we actually focussed on optimizing the current algorithms when the original idea was to rethink the overall cleanup approach to handle "60k other assets".
As I have seen during initial investigation on #97979 and as confirmed by mkittler during asset cleanup there are often syscalls accessing /etc/localtime. mkittler pointed out that the asset lookup also does a lot of logging. In https://github.com/os-autoinst/openQA/blob/master/lib/OpenQA/Log.pm#L178 and https://github.com/os-autoinst/openQA/blob/master/lib/OpenQA/Log.pm#L180 we call gettimeofday and localtime a lot.

Acceptance criteria

  • AC1: Recurring log calls with timestamp do not have a significant performance impact

Related issues 2 (2 open0 closed)

Copied from openQA Project (public) - action #99420: Asset cleanup takes very long to process 60k files in "other" - now for real!New

Actions
Copied to openQA Project (public) - action #100599: Asset cleanup takes very long to process 60k files in "other" - too verbose logging, switch some debug to trace?New

Actions
Actions

Also available in: Atom PDF