List:General Discussion« Previous MessageNext Message »
From:Jigal van Hemert Date:July 26 2005 2:45pm
Subject:Re: malloc troubles on 64-bit machine
View as plain text  
Hi Joerg,

From: "Joerg Bruehe"
> Jigal van Hemert wrote:
> > 050726 14:13:12  mysqld started
> > 050726 14:13:12  InnoDB: Error: cannot allocate 7340048384 bytes of
> > InnoDB: memory with malloc! Total allocated memory
> > InnoDB: by InnoDB 78086952 bytes. Operating system errno: 12
> On my machine (Linux: SuSE 9.1), I have this line in
> /usr/include/asm-generic/errno-base.h :
>     #define ENOMEM          12      /* Out of memory */

And perror 12 also produces a similar error description.

> So it looks like some address space (paging area?) was not yet free when
> the restart was attempted. Maybe the MySQL server had not yet fully
> terminated?

MySQL server was terminated; at least it didn't show up in the output of the
ps-command.

It doesn't happen all the time; the server was running for a few days now.
We have never encountered such a situation on a 32-bit machine yet. You
could simply terminate MySQL and start it immediately.

Can memory get fragmented in some way after it is allocated?

Regards, Jigal.

Thread
malloc troubles on 64-bit machineJigal van Hemert26 Jul
  • Re: malloc troubles on 64-bit machineJoerg Bruehe26 Jul
  • Re: malloc troubles on 64-bit machineJigal van Hemert26 Jul
    • Re: malloc troubles on 64-bit machineJoerg Bruehe27 Jul
Re: malloc troubles on 64-bit machineMatthijs van der Klip29 Jul
  • Re: malloc troubles on 64-bit machineJoerg Bruehe29 Jul
    • Re: malloc troubles on 64-bit machineMatthijs van der Klip1 Aug
      • Re: malloc troubles on 64-bit machineJoerg Bruehe1 Aug
        • Re: malloc troubles on 64-bit machineMatthijs van der Klip8 Aug
          • Re: malloc troubles on 64-bit machineIngo Strüwing9 Aug