Skip to content

Performance Issues Deleting Files #2055

Closed
opencloud-eu/reva
#490

Description

@micbar

Discussed in https://github.com/orgs/opencloud-eu/discussions/2054

Originally posted by l33 December 18, 2025
I am new to OpenCloud and have assimilated a large set of files into the documented docker-compose setup. Using it I noticed some things that are particularly slow. For example deleting a file takes about 10 seconds. During that time opencloud is completely utilizing multiple CPUs. Looking into what is happening using strace I noticed a lot of communication going on to the nats service. It is just myself the single user clicking delete on the web UI. I ran tcpdump to look into what is happing on port 9233 and it recorded more than 300 MiB traffic for deleting a single file. I wonder if this is working as intended. I would guess it is not and any help to find the cause is appreciated.

Activity

  1. added theissue type on Dec 24, 2025
  2. fschade commented on Dec 29, 2025

    @fschade
    Member

    maybe related: #1269 (comment)

  3. self-assigned this
    on Jan 5, 2026
  4. aduffeck commented on Jan 5, 2026

    @aduffeck
    Member

    @l33 you mention a "larget set of files". Is that in a single directory or spread across multiple subdirectories? It would be great if you could give a rough estimate on the number of directories and files and max. number of files per directory we're talking about so we can better try to reproduce that issue.

  5. l33 commented on Jan 5, 2026

    @l33

    @l33 you mention a "larget set of files". Is that in a single directory or spread across multiple subdirectories? It would be great if you could give a rough estimate on the number of directories and files and max. number of files per directory we're talking about so we can better try to reproduce that issue.

    The files are spread over multiple directories. Here are the statistics I have collected:

    • 1,041,397 files in total
    • 31,707 directories in total
    • The 5 directories with the most files contain the following number of files
      1. 7,096
      2. 7,024
      3. 3,603
      4. 3,135
      5. 3,135

    I noted that there are a few directories which are not part of my data and contain a large number of files. These are .oc-nodes/lock in some of the users and projects directories. There are four which contain more files than the highest number of files in any of the other user directories. They contain the following number of files:

    1. 244,347
    2. 129,286
    3. 109,225
    4. 88,981

    I am not that much into OpenCloud that I can tell the purpose and live time of those lock files. Any help or hint is appreciated.

  6. l33 commented on Jan 5, 2026

    @l33

    maybe related: #1269 (comment)

    Perhaps it is. I had memory issues which led the OOM killer restarting OpenClound multiple times.

  7. aduffeck commented on Jan 13, 2026

    @aduffeck
    Member

    @l33 This will supposedly improve once opencloud-eu/reva#490 has been merged. Please let us know if you still find CPU usage to be excessive afterwards.

  8. moved this from Qualification to Done in OpenCloud Team Boardon Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions