Re: [Tracker] Fix for issue with memory limits



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Thanks for the contribution Ralph. Great work. Pushed to master.

Ralph Böhme schreef op 1/06/2014 8:56:

Am 31.05.2014 um 09:30 schrieb Ralph Böhme <rb netafp com>:

Hi

libtracker-common: memory limits on systems with large amounts of
RAM

On systems with large amounts of RAM get_memory_total() could
overflow and return a negative value, as a result memory would be
limited to MEM_LIMIT_MIN (which is 256 MB atm).

diff: 
<https://github.com/slowfranklin/tracker/commit/faf826c57ee33c9e29388c586f14b26451416934>



patch:
<https://github.com/slowfranklin/tracker/commit/faf826c57ee33c9e29388c586f14b26451416934.patch>


this works nicely on my test system.

Without the patch:

12 Mai 2014, 14:33:09: Tracker: Setting memory limitations: total
is 18,4 EB, minimum is 256 MB, recommended is ~1 GB 12 Mai 2014,
14:33:09: Tracker:   Virtual/Heap set to 268,4 MB (50% of total or
MAXLONG)

With the patch:

Tracker-Message: Setting memory limitations: total is 68,4 GB,
minimum is 256 MB, recommended is ~1 GB Tracker-Message:
Virtual/Heap set to 2,1 GB (50% of total or MAXLONG)

Cheerio! -Ralph _______________________________________________ 
tracker-list mailing list tracker-list gnome org 
https://mail.gnome.org/mailman/listinfo/tracker-list


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTi2YTAAoJEEP2NSGEz4aDLWQH+QEh6WBVMVBccStT0IimIPct
fx9cvP5Kz1VnDB8r2v+9CrKzHIQZGTGTzGgGl+007niVsDOvoz5pf+7xsZnfvims
CznFudb521aG3uXII8xU7bLPAXdaYphyOhHW8j5auoCMX4ieLNl3h8nwajjoQg2Q
HkP2NXOFVeZ/VOmZ5dc+tJYfgubY3G1MKlhA7zml0T76yjmZN/nxH47vH8Y0HoBM
LBCFuYOva24yZUKjA5AoorsqCtHEKqE/Bg0Q2oomvuWaOlDWDNr9KHup2b0qpW0F
G16h7Tw9KWh5RQiopugDd/VWmkQ/S/Q4k51XDxFFiQi+ZZva13xyecno+9iyxOA=
=vRU7
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]