From owner-svn-src-head@FreeBSD.ORG Mon Oct 31 16:33:04 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 618EE106566C; Mon, 31 Oct 2011 16:33:04 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6F46C8FC1C; Mon, 31 Oct 2011 16:33:03 +0000 (UTC) Received: by faar19 with SMTP id r19so8136367faa.13 for ; Mon, 31 Oct 2011 09:33:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7iBU6FYPekzqcX3LzOETad6o4DHu9DSJTO9LXUz86KI=; b=toN3e9M9PcjgJCdwexFzHgijbSiIZUOB/ygHNxT0BdNserEZEIKeJxmeEZEXhnK3FO xXvg2AzPvfiyI5Yxwk87KQ4XH5LhYNHgt6crIUkfzQ7jmKm2+prFIv02XBRo2Rru2jPH CYvun5C0iwB1Vsa/KlZ0DAXNB6Ag2ZJw0+2/A= MIME-Version: 1.0 Received: by 10.182.59.5 with SMTP id v5mr3002757obq.78.1320078781645; Mon, 31 Oct 2011 09:33:01 -0700 (PDT) Sender: pluknet@gmail.com Received: by 10.182.89.41 with HTTP; Mon, 31 Oct 2011 09:33:01 -0700 (PDT) In-Reply-To: <201110300506.p9U56E3l049042@svn.freebsd.org> References: <201110300506.p9U56E3l049042@svn.freebsd.org> Date: Mon, 31 Oct 2011 19:33:01 +0300 X-Google-Sender-Auth: 6M2N4BX3H6aIzcsZjknutbVoZ1Q Message-ID: From: Sergey Kandaurov To: Alan Cox Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r226928 - head/sys/vm X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2011 16:33:04 -0000 On 30 October 2011 09:06, Alan Cox wrote: > Author: alc > Date: Sun Oct 30 05:06:14 2011 > New Revision: 226928 > URL: http://svn.freebsd.org/changeset/base/226928 > > Log: > =A0Eliminate vm_phys_bootstrap_alloc(). =A0It was a failed attempt at > =A0eliminating duplicated code in the various pmap implementations. > > =A0Micro-optimize vm_phys_free_pages(). > > =A0Introduce vm_phys_free_contig(). =A0It is fast routine for freeing an > =A0arbitrary number of physically contiguous pages. =A0In particular, it > =A0doesn't require the number of pages to be a power of two. > > =A0Use "u_long" instead of "unsigned long". > > =A0Bruce Evans (bde@) has convinced me that the "boundary" parameters > =A0to kmem_alloc_contig(), vm_phys_alloc_contig(), and > =A0vm_reserv_reclaim_contig() should be of type "vm_paddr_t" and not > =A0"u_long". =A0Make this change. Hello. After updating to this revision I constantly get random mtrash_ctor() assertions. [most often during make installkernel, otherwise idle.] Below is one of them (previous memory consumers in panicstr differ). Memory modified after free 0xfffffe0002700800(120) val=3D0 @ 0xfffffe000270= 0800 panic: Most recently used by proc-args cpuid =3D 1 KDB: stack backtrace: db_trace_self_wrapper() at 0xffffffff802e009a =3D db_trace_self_wrapper+0x2= a kdb_backtrace() at 0xffffffff80486f17 =3D kdb_backtrace+0x37 panic() at 0xffffffff8044f87e =3D panic+0x2ee mtrash_ctor() at 0xffffffff8068c904 =3D mtrash_ctor+0x84 uma_zalloc_arg() at 0xffffffff8068c16c =3D uma_zalloc_arg+0x2dc malloc() at 0xffffffff8043abd6 =3D malloc+0xc6 pargs_alloc() at 0xffffffff804425d3 =3D pargs_alloc+0x23 kern_execve() at 0xffffffff8041cb47 =3D kern_execve+0x1277 sys_execve() at 0xffffffff8041ce6d =3D sys_execve+0x3d amd64_syscall() at 0xffffffff806c6319 =3D amd64_syscall+0x299 Xfast_syscall() at 0xffffffff806b16b7 =3D Xfast_syscall+0xf7 --- syscall (59, FreeBSD ELF64, sys_execve), rip =3D 0x800d4cbec, rsp =3D 0x7fffffffd1a8, rbp =3D 0x8014124a0 --- --=20 wbr, pluknet