[Tracker] Memory allocation failures during extraction in 0.14.2
- From: Ken Schmedding <schmedk gmail com>
- To: tracker-list <tracker-list gnome org>
- Subject: [Tracker] Memory allocation failures during extraction in 0.14.2
- Date: Mon, 13 Aug 2012 12:47:42 -0400
Greetings,
I was getting these failures (as reported in tracker-extract.log in verbosity debug) on large files during extraction:
GLib:gmem.c:239 failed to allocate xxx bytes
I did some analysis and found that tracker-extract.log reports:
Setting memory limitations: total is 18.4 EB
Virtual/Heap set to 268.4 MB
I was confused by this as my Mac Pro running Fedora 16 has 12 GB of memory. Also I was confused by the EB reported for memory as I never heard of E bytes
In tracker-os-dependent-unix.c line 284 I see a comment that seems to indicate I should get a virtual/heap of 1/2 of MAXLONG or about 1 GB instead of the reported 268.4 MB.
For testing I altered line 285 to not use CLAMP and set the virtual/heap to G_MAXLONG / 2 and after recompiling I now have a virtual/heap of 1.1 GB
All my memory allocation errors then disappeared. Has anyone else seen this?
Thanks,
Ken Schmedding
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]