Project

General

Profile

Actions

Bug #64479

closed
XH XH

Memory leak detected when accessing a CephFS volume from Samba using libcephfs

Bug #64479: Memory leak detected when accessing a CephFS volume from Samba using libcephfs

Added by Xavi Hernandez almost 3 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Category:
Performance/Resource Usage
Target version:
Due date:
% Done:

0%

Source:
Backport:
quincy,reef,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
libcephfs
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-329-g55ac8d6d0b
Released In:
v20.2.0~3431
Upkeep Timestamp:
2026-08-28T01:34:56+00:00

Description

When files are continuously created and deleted from a CephFS volume accessed through Samba with libcephfs (Samba's vfs_ceph module), a steady increase of used memory is observed. The growth is relatively slow but constant and eventually it triggers the OOM killer.

The test I used to reproduce it was:

  1. while true; do dd if=/dev/zero of=/mnt/samba/file bs=4k count=1 status=none; rm -f /mnt/samba/file; done

This can be run in parallel using different files to make the leak to happen faster.


Related issues 3 (0 open — 3 closed)

Copied to CephFS - Backport #64736: quincy: Memory leak detected when accessing a CephFS volume from Samba using libcephfsResolvedXavi Hernandez

Actions
Copied to CephFS - Backport #64737: reef: Memory leak detected when accessing a CephFS volume from Samba using libcephfsResolvedXavi Hernandez

Actions
Copied to CephFS - Backport #64738: squid: Memory leak detected when accessing a CephFS volume from Samba using libcephfsResolvedXavi Hernandez

Actions

VS Updated by Venky Shankar almost 3 years ago Actions #1

  • Category set to Performance/Resource Usage
  • Status changed from New to Fix Under Review
  • Assignee set to Xavi Hernandez
  • Target version set to v19.0.0
  • Backport set to quincy, reef
  • Pull request ID set to 55619

VS Updated by Venky Shankar over 2 years ago Actions #2

  • Status changed from Fix Under Review to Pending Backport
  • Backport changed from quincy, reef to quincy,reef,squid

UB Updated by Upkeep Bot over 2 years ago Actions #3

  • Copied to Backport #64736: quincy: Memory leak detected when accessing a CephFS volume from Samba using libcephfs added

UB Updated by Upkeep Bot over 2 years ago Actions #4

  • Copied to Backport #64737: reef: Memory leak detected when accessing a CephFS volume from Samba using libcephfs added

UB Updated by Upkeep Bot over 2 years ago Actions #5

  • Copied to Backport #64738: squid: Memory leak detected when accessing a CephFS volume from Samba using libcephfs added

UB Updated by Upkeep Bot almost 2 years ago Actions #7

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

UB Updated by Upkeep Bot almost 2 years ago Actions #8

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot over 1 year ago Actions #9

  • Merge Commit set to 55ac8d6d0bfa7604d66218eeb3a1b7fd404e22fd
  • Fixed In set to v19.3.0-329-g55ac8d6d0bf
  • Upkeep Timestamp set to 2025-07-02T03:41:41+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #10

  • Fixed In changed from v19.3.0-329-g55ac8d6d0bf to v19.3.0-329-g55ac8d6d0b
  • Upkeep Timestamp changed from 2025-07-02T03:41:41+00:00 to 2025-07-14T16:45:27+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #11

  • Released In set to v20.2.0~3431
  • Upkeep Timestamp changed from 2025-07-14T16:45:27+00:00 to 2025-11-01T01:27:01+00:00

UB Updated by Upkeep Bot 3 months ago Actions #12

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:27:01+00:00 to 2026-08-28T01:34:56+00:00
Actions

Also available in: PDF Atom