Comments (5)
@pkalever can you please help here?
from glusterfs.
Yes, there is known bug/leak from glfs_fini() around 7-10MB per call, to do a leak less fini, gluster has to implement the cleanup methods per xlator, which is time taking but hopefully should be done in next couple of releases.
Work done so far to minimize the leaks:
Currently, a start of a VM (with only one disk, no snapshots) via libvirt will call 2 glfs_new/glfs_init (which will create glfs object, once for stat, read headers and next to chown) and then will fork qemu process which will call glfs once again (for actual read write IO).
Not that all, in case if we are have 4 extra attached disks, then the total calls to glfs_init() and friends will be (4+1)*2 in libvirt and (4+1)*1 in qemu space i.e 15 calls. Since we don't have control over qemu process as that executes in a different process environment, and killed on shutdown, lets do not bother much about it.
Additionally snapshot(external) scenario will further complex the situation, it does more recursive calls to each overlay on each disk.
I have submitted a patch [1] which shrinks these 10 + Snapshots (libvirt) calls (i.e objects from above example) to just one, by maintaining a cache of glfs objects. Note this patch is still under review.
Also [2] will address the memory allocation/consumption and minimize the leaks in QEMU, this patch is already in master and will appear in 2.8 release of qemu. Please go through the commit message for more details.
[1] https://www.spinics.net/linux/fedora/libvir/msg140475.html
[2] https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg07087.html
Cheers!
from glusterfs.
I am with the same issue here, in two days my server memory usage raise next to maximum (32GB)
I am using Ubuntu 16.04.3 LTS
from glusterfs.
Thank you for your contributions.
Noticed that this issue is not having any activity in last ~6 months! We are marking this issue as stale because it has not had recent activity.
It will be closed in 2 weeks if no one responds with a comment here.
from glusterfs.
Closing this issue as there was no update since my last update on issue. If this is an issue which is still valid, feel free to open it.
from glusterfs.
Related Issues (20)
- When I started the mount operation, a large number of logs were generated, and the logs were basically: read from /dev/fuse returned -1, which filled up the disk.
- Infinite recursion segmentation fault involving `inode_unref()` and `xlators/features/bit-rot/src/stub/bit-rot-stub.c` HOT 14
- Not self healing hanging in "Possibly undergoing heal" HOT 1
- Is the project still alive? HOT 15
- Georeplication : unpredictable mapping between primary nodes and secondary nodes HOT 4
- Is it possible to use a different user on each node for a georeplication session? HOT 2
- [RFE] Manual option to select Active Geo-replication worker
- ubuntu 22.04 10.1 gluster vs 11.1 performance HOT 2
- Client issue: client-rpc-fops_v2.c:2618:client4_0_lookup_cbk - remote operation failed - error=No data available + periodic loss of mount on native client
- Unable to mount local volume at boot (Debian bullseye) HOT 3
- Error in loopback detection fails hostnamens starting with 0. HOT 1
- bug report HOT 1
- fallocate with flag FALLOC_FL_ZERO_RANGE failed HOT 7
- Strange issue with permission denied and bizarre mtime HOT 5
- sq: rename may cause statistical issue HOT 1
- sq: df show wrong usage after file deleted
- Gluster Linked File Issues during Healing HOT 1
- qemu-img create via libfapi is slow HOT 8
- [BUG] Geo-rep transfers large files multiple times while using Tar+ssh HOT 3
- Segmentation fault gluster volume status all clients HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glusterfs.