Displaying 9 results from an estimated 9 matches for "dlm_alloc_ctxt".
2006 Nov 21
2
Memory leak in ocfs2/dlm?
Hi!
Seems we're facing some memory leak here. This is vanilla 2.6.19-rc6
on a x86_64 box, 4GB RAM.
A simple `ls -Rn' on a filesystem with lots of files makes the box
leak so much RAM that the OOM killer starts to kick in. With slab
alloc debugging turned on, we see this:
# mount; ls -Rn; wait some seconds; Ctrl-C
[root@lnxp-1038:/backend1]$ cat /proc/slab_allocators | egrep
2009 Apr 22
1
[PATCH 1/1] OCFS2: fasten dlm_lock_resource hash_table lookups
...22,7 @@ static int dlm_migrate_all_locks(struct
for (i = 0; i < DLM_HASH_BUCKETS; i++) {
redo_bucket:
n = 0;
- bucket = &dlm->lockres_hash[i];
+ bucket = dlm_lockres_hash(dlm, i);
iter = bucket->first;
while (iter) {
n++;
@@ -1356,7 +1384,8 @@ static struct dlm_ctxt *dlm_alloc_ctxt(c
goto leave;
}
- dlm->lockres_hash = (struct hlist_head *) __get_free_page(GFP_KERNEL);
+ dlm->lockres_hash = (struct hlist_head **)
+ dlm_alloc_pagevec(DLM_HASH_PAGES);
if (!dlm->lockres_hash) {
mlog_errno(-ENOMEM);
kfree(dlm->name);
@@ -1366,7 +1395,7 @@ static stru...
2009 May 01
0
[PATCH 1/3] OCFS2: speed up dlm_lockr_resouce hash_table lookups
...e_all_locks(struct
for (i = 0; i < DLM_HASH_BUCKETS; i++) {
redo_bucket:
n = 0;
- bucket = &dlm->lockres_hash[i];
+ bucket = dlm_lockres_hash(dlm, i);
+ dlm_lockres_hash(dlm, i);
iter = bucket->first;
while (iter) {
n++;
@@ -1356,7 +1384,8 @@ static struct dlm_ctxt *dlm_alloc_ctxt(c
goto leave;
}
- dlm->lockres_hash = (struct hlist_head *) __get_free_page(GFP_KERNEL);
+ dlm->lockres_hash = (struct hlist_head **)
+ dlm_alloc_pagevec(DLM_HASH_PAGES);
if (!dlm->lockres_hash) {
mlog_errno(-ENOMEM);
kfree(dlm->name);
@@ -1365,8 +1394,8 @@ static str...
2009 Feb 03
10
Convert mle list to a hash
These patches convert the mle list to a hash. The same patches apply on
ocfs2 1.4 too.
Currently, we use the same number of hash pages for mles and lockres'.
This will be addressed in a future patch that will make both of them
configurable.
Sunil
2009 Feb 26
13
o2dlm mle hash patches - round 2
The changes from the last drop are:
1. Patch 11 removes struct dlm_lock_name.
2. Patch 12 is an unrelated bugfix. Actually is related to a bugfix
that we are retracting in mainline currently. The patch may need more testing.
While I did hit the condition in my testing, Marcos hasn't. I am sending it
because it can be queued for 2.6.30. Give us more time to test.
3. Patch 13 will be useful
2009 Apr 17
26
OCFS2 1.4: Patches backported from mainline
Please review the list of patches being applied to the ocfs2 1.4 tree.
All patches list the mainline commit hash.
Thanks
Sunil
2009 Jan 14
15
Backport patches to ocfs2 1.4 tree from mainline
Found 15 patches (out of 162) that appeared relevant to ocfs2 1.4.
Please review.
Sunil
2009 Mar 17
33
[git patches] Ocfs2 updates for 2.6.30
Hi,
The following patches comprise the bulk of Ocfs2 updates for the
2.6.30 merge window. Aside from larger, more involved fixes, we're adding
the following features, which I will describe in the order their patches are
mailed.
Sunil's exported some more state to our debugfs files, and
consolidated some other aspects of our debugfs infrastructure. This will
further aid us in debugging
2008 Apr 02
10
[PATCH 0/62] Ocfs2 updates for 2.6.26-rc1
The following series of patches comprises the bulk of our outstanding
changes for Ocfs2.
Aside from the usual set of cleanups and fixes that were inappropriate for
2.6.25, there are a few highlights:
The '/sys/o2cb' directory has been moved to '/sys/fs/o2cb'. The new location
meshes better with modern sysfs layout. A symbolic link has been placed in
the old location so as to