https://bugzilla.wikimedia.org/show_bug.cgi?id=61711

--- Comment #11 from Bawolff (Brian Wolff) <[email protected]> ---
Created attachment 15694
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=15694&action=edit
mem limit values I tested image magick with

So in my tests, newer versions of image magick seem to sometimes be able to
recover from ulimit -v, and use less memory if they run out (at least that's
what I think is happening). That doesn't seem to happen with cgroups.

There are various environmental variables you can set to tell image magick its
memory limits. When I tried setting them on newer image magick (6.8.9-3), it
caused the animated gif I was testing to be rendered without exceeding memory
limit (where previously cgroups killed it for OOM) [See attached patch for
values I was testing with].

However, testing on 6.6.0-4, this didn't seem to have a lot of affect. WMF is
currently using "ImageMagick 6.6.9-7 2014-03-06 Q16", so I'm unsure what affect
it would have there (Although rumour has it they are updating some applications
in the next 2 months).

The values I was testing with were mostly pulled out of my hat/trial and error,
so also unclear if they are good values. Anyways, more research needs to be
done to see if this is practical/a good idea [which is why I added my patch
here, not in gerrit].

The gif file I was testing with is
https://upload.wikimedia.org/wikipedia/commons/archive/6/64/20140614071837%21BULGARI_-_a_gentleman%27s_Carbongold_Hong_Kong_chronograph_wrist_watch._Fellows-1438-2-A.gif
. I was using cgroups with $wgMaxShellMemory set to 400*1024*1024

see also: http://www.imagemagick.org/script/command-line-options.php#limit

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to