|
From: | Arthur Maciel |
Subject: | Re: [Chicken-users] Failure when compiling html-tags egg |
Date: | Fri, 16 Dec 2016 22:40:59 -0200 |
On Fri, Dec 16, 2016 at 07:05:26AM +0100, Mario Domenech Goulart wrote:
> Hi Arthur,
>
> On Thu, 15 Dec 2016 22:40:47 -0200 Arthur Maciel <address@hidden> wrote:
>
> > On Thu, Dec 15, 2016 at 10:28 PM, Evan Hanson <address@hidden> wrote:
> >
> > A first guess is that Linux's OOM killer might be killing your
> > process. html-tags is notorious for both time and memory usage
> > while compiling. Check for messages like "oom" or "killed process"
> > in /var/log/syslog or /var/log/kern.log to see if that's what's
> > going on.
> >
> > Hi Evan! You are right! There are messages in the logs. Do you know if
> > there is any way to circumvent it?
>
> There's not much to do but getting more memory (i.e., more swap,
> compiling on a machine with more memory). html-tags is really horrible.
> It's a relatively small macro that defines a lot of procedures.
One thing that might help is to use zram, if the system is not already using it.
$ cat /proc/swaps
Filename Type Size Used Priority
/dev/dm-5 partition 6709244 14884 -1
/dev/zram0 partition 927576 146572 5
/dev/zram1 partition 927576 145996 5
/dev/zram2 partition 927576 145768 5
/dev/zram3 partition 927576 145972 5
That means I have one swap partition on disk (dm-5) and four "swap partitions"
on RAM (it's basically compressing RAM memory on the fly). Swap on disk is only
used when "swap on RAM" is exhausted.
Many Linux distributions will install the zram module by default, but not all
of them. If /proc/swaps doesn't include any /dev/zram devices, it may be a
good idea to enable it.
J.
_______________________________________________
Chicken-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-users
[Prev in Thread] | Current Thread | [Next in Thread] |