From owner-freebsd-emulation@FreeBSD.ORG Thu Nov 1 08:33:06 2007 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB2BC16A417 for ; Thu, 1 Nov 2007 08:33:06 +0000 (UTC) (envelope-from valera@chikalov.dp.ua) Received: from ns.novakom.com.ua (novakom.com.ua [213.154.219.248]) by mx1.freebsd.org (Postfix) with ESMTP id 5FC8F13C494 for ; Thu, 1 Nov 2007 08:33:06 +0000 (UTC) (envelope-from valera@chikalov.dp.ua) Received: from novakom.com.ua (post [192.168.1.254]) by ns.novakom.com.ua (Postfix) with SMTP id A7D4517374 for ; Thu, 1 Nov 2007 10:32:17 +0200 (EET) Received: (qmail 56173 invoked by uid 0); 1 Nov 2007 08:32:17 -0000 Received: from 192.168.1.210 by post.novakom.dp.ua (envelope-from , uid 82) with qmail-scanner-1.25 (clamdscan: devel-20051128/1195. Clear:RC:1(192.168.1.210):. Processed in 0.025282 secs); 01 Nov 2007 08:32:17 -0000 X-Qmail-Scanner-Mail-From: valera@chikalov.dp.ua via post.novakom.dp.ua X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.1.210):. Processed in 0.025282 secs) Received: from goliath.novakom.dp.ua (192.168.1.210) by post.novakom.dp.ua with SMTP; 1 Nov 2007 08:32:17 -0000 Message-ID: <47298F10.4050301@chikalov.dp.ua> Date: Thu, 01 Nov 2007 10:32:16 +0200 From: "Valery V.Chikalov" User-Agent: Thunderbird 2.0.0.6 (X11/20070921) MIME-Version: 1.0 To: Martin Cracauer References: <4721AB07.20708@novakom.com.ua> <4723A8D6.6020002@chikalov.dp.ua> <20071031180639.GA93259@cons.org> In-Reply-To: <20071031180639.GA93259@cons.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: Linux emulation on FreeBSD AMD64 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2007 08:33:06 -0000 Martin Cracauer wrote: > Valery V.Chikalov wrote on Sun, Oct 28, 2007 at 12:08:38AM +0300: >> Oct 27 19:42:59 tiger kernel: mprotect addr:2a27d000, return 0 >> Oct 27 19:42:59 tiger kernel: mprotect addr:2a7c1000, return 0 >> Oct 27 19:42:59 tiger kernel: mprotect addr:2a7cd000, return 0 >> Oct 27 19:42:59 tiger kernel: mprotect addr:2a7e2000, return 0 >> Oct 27 19:42:59 tiger kernel: mprotect addr:2a7ef000, return 0 >> Oct 27 19:43:09 tiger kernel: mprotect addr:55c00000, return 13 >> Oct 27 19:43:09 tiger kernel: mprotect addr:55c81000, return 13 > > You need to check whether these is anything mapped there in the first > place and what the permissions are. > > This is probably best done by changing your debugging code in the > Linuxulator to print amessage, then sleep for 10 seconds giving you > time to copy the memory map to a safe place, then look up what the > mapping at the position was. > > Martin Hi, Martin. Thank you for the hint. But I'm not sure that I understanding you right. I'm not a kernel hacker, just C-programmer with ability to read documentation. :-) Do the "memory map" about you told is some C-struct I can deal with and which can be accessed by some system call, or that task ("copy the memory map") can be achieved by some userland utility like "ipcs" or "vmstat -m". I already have tried to understand which memory(in Shared Memory) and how Oracle uses but don't know how to make it ever on "macro" level. This is little different problem, but while we are here. "ipcs -m" is always showing only one piece of memory like that: Shared Memory: T ID KEY MODE OWNER GROUP m 131072 -976851172 --rw-rw---- oracle oracle I'm doubt that Oracle uses only this one. I'm ever don't know how to detect size of memory used by Oracle (from operation system point of view, oracle has it's own "show sga" command). "ipcs -M" give me only min/max limits. "vmstat -m" don't contains a mention about oracle. Definitely I'm missing something obvious, will be glad to hear what exactly. :-) Thanks. Valery.