Comments (4)
I was not suggesting to remove all counters. Only those that are relevant for dump time only.
from glusterfs.
Plus unless it's locked it's wrong anyway as it could be raced unless it's atomic_t types (which does a memory bus lock at time of read-update-store), and those you don't increment and decrement using ++ and/or -- operators.
from glusterfs.
Plus unless it's locked it's wrong anyway as it could be raced unless it's atomic_t types (which does a memory bus lock at time of read-update-store), and those you don't increment and decrement using ++ and/or -- operators.
But it done under lock. See
glusterfs/libglusterfs/src/inode.c
Line 2431 in 929d71b
from glusterfs.
I think we do need the LRU inode entries in table kept as a counter because we also have LRU limit, which this counter is checked against to determine if we need to invalidate some entries. So in my opinion rather sack the extra cycle or two on insert/remove rather than re-counting every time we need to know how many entries there are (if we have 2m table size that's 32MB of memory being traversed minimum, trashing page caches on the CPU as we go, and that's without traversing the individual chains).
from glusterfs.
Related Issues (20)
- 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
- Errors creating files via qemu-img / libgfapi
- The rights to folders and files from the glusterfs client are flying off HOT 3
- glusterfs: symbol lookup error: /lib/x86_64-linux-gnu/libgfrpc.so.0: undefined symbol: gf_async_ctrl HOT 1
- Transport endpoint is not connected HOT 5
- Persistent File Staleness Errors in GlusterFS Volume HOT 2
- dentry_hashsize HOT 27
- inode->in_lru_list is not really used
- ZFS xattr conflict due to forbidden 'trusted' prefix HOT 1
- Symlinking to a file with a long filepath results in a broken link HOT 4
- logging.warn is removed in Python 3.13
- Error in count inode glusterfs HOT 1
- Glustrefs geo replication anytime consistency question
- brick recovery question HOT 2
- [glusterfsd.c:2333:glusterfs_pidfile_update] 0-glusterfsd: pidfile /var/lib/glusterd/vols/xuanji/rebalance/XXX.pid lock failed [Resource temporarily unavailable]
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.