Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Feb 2000 11:32:57 -0300 (EST)
From:      Fabio Cesar Gozzo <fabio@iqm.unicamp.br>
To:        freebsd-emulation@freebsd.org
Cc:        fabio@iqm.unicamp.br
Subject:   Linux shared memory
Message-ID:  <200002141432.LAA99522@thomson.iqm.unicamp.br>

next in thread | raw e-mail | index | archive | help

Hi all,
I'm trying to run parallel linux program under FreeBSD but I'm having 
some problems. The program makes use of fork() to create a another
process and thus, to use the extra CPU. However, the parallel version
stops with a "shmget failed.:Invalid argument" message.
Accordind to the vendor, I should
increase the shared memory parameter, because the default 32MB of linux
isn't enough. They suggest increasing it to 64MB by either editing
the SHMMAX parameter in /usr/src/linux/include/asm/shmparam.h or by
simply executing the command:
# echo "67108864" >/proc/sys/kernel/shmmax

I tried to increase the undocumented kernel parameter SHMMAX to 128MB
but now it stops with "shmget failed.: Cannot allocate memory"
Is this a linux emulation or a FreeBSD shared memory issue ?
I'm using linux_base-6.1 under 4.0-20000208-CURRENT on a dual PIII 550 with
512MB RAM. I'm specifying 2 processors available to the program.
Please, CC to me.
Thank you,

-- 
**************************************************
Fabio Gozzo                   fabio@iqm.unicamp.br
State University of Campinas               UNICAMP
Chemistry Institute  http://thomson.iqm.unicamp.br
**************************************************
-- 
**************************************************
Fabio Gozzo                   fabio@iqm.unicamp.br
State University of Campinas               UNICAMP
Chemistry Institute  http://thomson.iqm.unicamp.br
**************************************************


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002141432.LAA99522>