From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 29 16:57:36 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD0521065675 for ; Thu, 29 Jul 2010 16:57:36 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 26D548FC1B for ; Thu, 29 Jul 2010 16:57:35 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA27313; Thu, 29 Jul 2010 19:57:33 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4C51B2FD.6070702@icyb.net.ua> Date: Thu, 29 Jul 2010 19:57:33 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.24 (X11/20100517) MIME-Version: 1.0 To: pebu3op@googlemail.com References: <201007291613.15719.pebu3op@googlemail.com> <4C51A8A3.7080808@icyb.net.ua> In-Reply-To: <4C51A8A3.7080808@icyb.net.ua> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: coherence-problem on the mapped memory buffer X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2010 16:57:36 -0000 on 29/07/2010 19:13 Andriy Gapon said the following: > on 29/07/2010 17:13 Alexander Fiveg said the following: >> P.S. Details about hardware and used software: >> 1. /var/run/dmesg.boot : >> ... >> CPU: Dual Core AMD Opteron(tm) Processor 865 (1800.01-MHz 686-class CPU) >> Origin = "AuthenticAMD" Id = 0x20f10 Family = f Model = 21 Stepping = 0 >> >> Features=0x178bfbff >> Features2=0x1 >> AMD Features=0xe2500800 >> AMD Features2=0x3 >> real memory = 3758030848 (3583 MB) >> avail memory = 3677495296 (3507 MB) >> ACPI APIC Table: >> FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs >> FreeBSD/SMP: 4 package(s) x 2 core(s) >> ... >> >> 2. uname -v >> FreeBSD 9.0-CURRENT #3 >> >> 3. sysctl kern.osreldate >> kern.osreldate: 900014 >> >> 4. //depot/projects/soc2010/ringmap/ In fact I have a suspicion that the problem might have to do with multiple mappings of the shared pages, but far from sure... Take a look at Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3A - System Programming Guide, Part 1; Chapter 11.12.4 Programming the PAT; starting at the following words: «The PAT allows any memory type to be specified in the page tables, and therefore it is possible to have a single physical page mapped to two or more different linear addresses, each with different memory types. Intel does not support this practice...» -- Andriy Gapon