From owner-freebsd-emulation Mon Feb 14 6:33:14 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from thomson.iqm.unicamp.br (thomson.iqm.unicamp.br [143.106.51.247]) by builder.freebsd.org (Postfix) with ESMTP id 259EF3E8A for ; Mon, 14 Feb 2000 06:33:01 -0800 (PST) Received: (from fabio@localhost) by thomson.iqm.unicamp.br (8.9.3/8.9.2) id LAA99522; Mon, 14 Feb 2000 11:32:57 -0300 (EST) (envelope-from fabio) From: Fabio Cesar Gozzo Message-Id: <200002141432.LAA99522@thomson.iqm.unicamp.br> Subject: Linux shared memory To: freebsd-emulation@freebsd.org Date: Mon, 14 Feb 2000 11:32:57 -0300 (EST) Cc: fabio@iqm.unicamp.br X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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