caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Fedora Core 9
@ 2008-05-15 21:30 Shivkumar Chandrasekaran
  2008-05-15 23:03 ` [Caml-list] " Shivkumar Chandrasekaran
  2008-05-16 10:11 ` Richard Jones
  0 siblings, 2 replies; 6+ messages in thread
From: Shivkumar Chandrasekaran @ 2008-05-15 21:30 UTC (permalink / raw)
  To: caml-list

Hi,

I am trying to install the latest release of OCaml 3.10.2 on a Fedora
Core 9 x86_64 machine. I am getting the same page table problems that
others were reporting, but was supposedly fixed in this release (?).

Anyway here are the relevant bits of information.

[shiv@sobolev ocaml-3.10.2]$ uname -a
Linux sobolev 2.6.25.3-18.fc9.x86_64 #1 SMP Tue May 13 04:54:47 EDT 2008
x86_64 x86_64 x86_64 GNU/Linux

[shiv@sobolev ocaml-3.10.2]$ cat /proc/sys/kernel/randomize_va_space 
0

../ocamlcompopt.sh -pp './remove_DEBUG' -I ../parsing -I ../utils
-I ../typing -I ../driver -I ../bytecomp -I ../tools -I ../toplevel/
-I ../stdlib -I ../otherlibs/str -I ../otherlibs/dynlink
-I ../otherlibs/unix -I ../otherlibs/num -I ../otherlibs/graph
-warn-error A -c odoc_sig.ml
Growing heap to 960k bytes
Growing page table to 371 entries
Growing heap to 1440k bytes
Growing page table to 493 entries
Growing heap to 1920k bytes
Growing page table to 615 entries
Growing heap to 2400k bytes
Growing page table to 1098 entries
Growing heap to 2880k bytes
Growing page table to 1220 entries
Growing heap to 3360k bytes
Growing page table to 1342 entries
Growing heap to 3840k bytes
Growing page table to 1464 entries
Growing heap to 4320k bytes
Growing page table to 34359705235 entries
No room for growing page table
Fatal error: out of memory.
make[1]: *** [odoc_sig.cmx] Error 2
make[1]: Leaving directory `/home/shiv/Desktop/ocaml-3.10.2/ocamldoc'
make: *** [ocamldoc.opt] Error 2

As can be seen I did use
echo 0 > /proc/sys/kernel/randomize_va_space

One other piece of information may or may not be relevant. I have 2GB
RAM installed but my swap partition is set to 8GB.

Does anyone have any advice on how I can proceed? I did try the binaries
shipped with Core 9 (and also Godi) and I had the same problems. Thanks,

--shiv--




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Fedora Core 9
  2008-05-15 21:30 Fedora Core 9 Shivkumar Chandrasekaran
@ 2008-05-15 23:03 ` Shivkumar Chandrasekaran
  2008-05-16 10:11 ` Richard Jones
  1 sibling, 0 replies; 6+ messages in thread
From: Shivkumar Chandrasekaran @ 2008-05-15 23:03 UTC (permalink / raw)
  To: caml-list; +Cc: Gerd Stolpmann

I just tried the current CVS version (3.11+dev12) and it compiled fine
on the same setup, even without turning off randomized_va_space.

--shiv--



On Thu, 2008-05-15 at 14:30 -0700, Shivkumar Chandrasekaran wrote:
> Hi,
> 
> I am trying to install the latest release of OCaml 3.10.2 on a Fedora
> Core 9 x86_64 machine. I am getting the same page table problems that
> others were reporting, but was supposedly fixed in this release (?).
> 
> Anyway here are the relevant bits of information.
> 
> [shiv@sobolev ocaml-3.10.2]$ uname -a
> Linux sobolev 2.6.25.3-18.fc9.x86_64 #1 SMP Tue May 13 04:54:47 EDT 2008
> x86_64 x86_64 x86_64 GNU/Linux
> 
> [shiv@sobolev ocaml-3.10.2]$ cat /proc/sys/kernel/randomize_va_space 
> 0
> 
> ../ocamlcompopt.sh -pp './remove_DEBUG' -I ../parsing -I ../utils
> -I ../typing -I ../driver -I ../bytecomp -I ../tools -I ../toplevel/
> -I ../stdlib -I ../otherlibs/str -I ../otherlibs/dynlink
> -I ../otherlibs/unix -I ../otherlibs/num -I ../otherlibs/graph
> -warn-error A -c odoc_sig.ml
> Growing heap to 960k bytes
> Growing page table to 371 entries
> Growing heap to 1440k bytes
> Growing page table to 493 entries
> Growing heap to 1920k bytes
> Growing page table to 615 entries
> Growing heap to 2400k bytes
> Growing page table to 1098 entries
> Growing heap to 2880k bytes
> Growing page table to 1220 entries
> Growing heap to 3360k bytes
> Growing page table to 1342 entries
> Growing heap to 3840k bytes
> Growing page table to 1464 entries
> Growing heap to 4320k bytes
> Growing page table to 34359705235 entries
> No room for growing page table
> Fatal error: out of memory.
> make[1]: *** [odoc_sig.cmx] Error 2
> make[1]: Leaving directory `/home/shiv/Desktop/ocaml-3.10.2/ocamldoc'
> make: *** [ocamldoc.opt] Error 2
> 
> As can be seen I did use
> echo 0 > /proc/sys/kernel/randomize_va_space
> 
> One other piece of information may or may not be relevant. I have 2GB
> RAM installed but my swap partition is set to 8GB.
> 
> Does anyone have any advice on how I can proceed? I did try the binaries
> shipped with Core 9 (and also Godi) and I had the same problems. Thanks,
> 
> --shiv--
> 
> 
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Fedora Core 9
  2008-05-15 21:30 Fedora Core 9 Shivkumar Chandrasekaran
  2008-05-15 23:03 ` [Caml-list] " Shivkumar Chandrasekaran
@ 2008-05-16 10:11 ` Richard Jones
  2008-05-16 10:23   ` Richard Jones
       [not found]   ` <1210952228.4837.3.camel@sobolev>
  1 sibling, 2 replies; 6+ messages in thread
From: Richard Jones @ 2008-05-16 10:11 UTC (permalink / raw)
  To: Shivkumar Chandrasekaran; +Cc: caml-list

On Thu, May 15, 2008 at 02:30:19PM -0700, Shivkumar Chandrasekaran wrote:
> I am trying to install the latest release of OCaml 3.10.2 on a Fedora
> Core 9 x86_64 machine. I am getting the same page table problems that
> others were reporting, but was supposedly fixed in this release (?).

Is there a reason why you're compiling OCaml from source?  F9 ships
with OCaml 3.10.2 and over 50 OCaml packages, in the standard release.

  yum install ocaml

It also contains a fix for the large pagetable problem, for x86-64.

Rich.

-- 
Richard Jones
Red Hat


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Fedora Core 9
  2008-05-16 10:11 ` Richard Jones
@ 2008-05-16 10:23   ` Richard Jones
       [not found]   ` <1210952228.4837.3.camel@sobolev>
  1 sibling, 0 replies; 6+ messages in thread
From: Richard Jones @ 2008-05-16 10:23 UTC (permalink / raw)
  To: Shivkumar Chandrasekaran; +Cc: caml-list

On Fri, May 16, 2008 at 11:11:33AM +0100, Richard Jones wrote:
> Is there a reason why you're compiling OCaml from source?  F9 ships
> with OCaml 3.10.2 and over 50 OCaml packages, in the standard release.
       ^^^^^^^^^^^^
Erm, I mean 3.10.1 in Fedora 9, of course.  You can get 3.10.2 by
adding the 'development' repo, should you need it.

Make sure you have at least ocaml-3.10.1-3, which is the one which
includes the fix for the pagetable problem:

  https://admin.fedoraproject.org/updates/F9/FEDORA-2008-3740

Rich.

-- 
Richard Jones
Red Hat


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Fedora Core 9
       [not found]   ` <1210952228.4837.3.camel@sobolev>
@ 2008-05-16 15:52     ` Richard Jones
       [not found]       ` <1210960502.3109.4.camel@sobolev>
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Jones @ 2008-05-16 15:52 UTC (permalink / raw)
  To: Shivkumar Chandrasekaran, caml-list

On Fri, May 16, 2008 at 08:37:08AM -0700, Shivkumar Chandrasekaran wrote:
> I was hoping you would reply. I did try the Core 9 ocaml packages. I
> then downloaded omake (which as far as I can tell is not in Core 9). But
> the ocaml compiler gave the same page table problem while compiling
> omake.[...]

You need to make sure to use the ocaml package which has the fix in
it.  (It was only fixed on Thursday last week).  These are the
packages minimum versions which contain the fix:

  ocaml >= 3.10.1-3  (for F-9)
  ocaml >= 3.10.2-2  (for Rawhide)

Because the packages are so new, you may need to enable the
updates-testing repository temporarily to get the new version.  I
think the command is:

  yum --enablerepo=updates-testing install ocaml

or you can edit some file under /etc/yum.repos.d/ to enable the
repository permanently.

OMake (ocaml-omake) is included in Fedora 9 (and 8), but possibly you
need to enable the updates or updates-testing repository to get it,
since it was only added a couple of weeks ago:

  https://admin.fedoraproject.org/updates/F9/FEDORA-2008-3725

Here's a complete list of packages in Fedora:

  http://wiki.cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora#Package_status

> echo 0 > /proc/sys/kernel/randomize_va_space
> 
> One thing I noticed that is different is that
> 
> cat /proc/sys/kernel/randomize_va_space
> 
> returns 2 (before echo 0 ...) on my machine as opposed to 1 which is
> what most of the people in the bug-fix notes reported.

These don't fix the problem on Fedora.  The fix needs a patch to the
OCaml compiler.  The details are here, but as emphasized above, please
use the Fedora packages, don't build stuff by hand.

  https://bugzilla.redhat.com/445545

Rich.

-- 
Richard Jones
Red Hat


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Fedora Core 9
       [not found]       ` <1210960502.3109.4.camel@sobolev>
@ 2008-05-16 18:11         ` Richard Jones
  0 siblings, 0 replies; 6+ messages in thread
From: Richard Jones @ 2008-05-16 18:11 UTC (permalink / raw)
  To: Shivkumar Chandrasekaran, caml-list

On Fri, May 16, 2008 at 10:55:02AM -0700, Shivkumar Chandrasekaran wrote:
> I just tried 3.10.1-3 for F-9 and omake (all from updates-testing). I
> had the same memory problem using omake.

OK, I've opened a bug about this, since this a very vital issue if
things are still failing:

https://bugzilla.redhat.com/show_bug.cgi?id=446940

Please can you fill in more details in the above report.  In
particular, these would be very helpful:

rpm -qa | grep ocaml

The full error message(s) of any failures you see.

Run commands with 'export OCAMLRUNPARAM=v=0x1ff' and report
any messages.

'strace' any programs which fail and attach the strace.

> I then tried
> echo 0 > /proc/sys/kernel/randomize_va_space

This won't make any difference to the problem, if our current
understanding is correct.

> checked it went through and re-tried omake. Still the same problem. At
> this point I think my original tests with ocaml 3.10.1 and 3.10.2 still
> hold I believe. That is, the memory bug is still essentially unresolved
> and I have to use 3.11 (at least on this particular machine
> configuration).

Unfortunately I've got to go out now, but I can look at this tomorrow
morning.

Rich.

-- 
Richard Jones
Red Hat


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-05-16 18:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-15 21:30 Fedora Core 9 Shivkumar Chandrasekaran
2008-05-15 23:03 ` [Caml-list] " Shivkumar Chandrasekaran
2008-05-16 10:11 ` Richard Jones
2008-05-16 10:23   ` Richard Jones
     [not found]   ` <1210952228.4837.3.camel@sobolev>
2008-05-16 15:52     ` Richard Jones
     [not found]       ` <1210960502.3109.4.camel@sobolev>
2008-05-16 18:11         ` Richard Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).