Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2013 14:07:43 +0200
From:      Ivan Klymenko <fidaj@ukr.net>
To:        Konstantin Belousov <kib@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r248569 - in head/sys: kern vm
Message-ID:  <20130321140743.278dc727@nonamehost>
In-Reply-To: <201303210728.r2L7SFYI075868@svn.freebsd.org>
References:  <201303210728.r2L7SFYI075868@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Kernel panic

http://pkgupdate.nevosoft.ru/core.txt.0
http://pkgupdate.nevosoft.ru/vmcore.0
http://pkgupdate.nevosoft.ru/kernel
http://pkgupdate.nevosoft.ru/kernel.symbols



=D0=92 Thu, 21 Mar 2013 07:28:15 +0000 (UTC)
Konstantin Belousov <kib@FreeBSD.org> =D0=BF=D0=B8=D1=88=D0=B5=D1=82:

> Author: kib
> Date: Thu Mar 21 07:28:15 2013
> New Revision: 248569
> URL: http://svnweb.freebsd.org/changeset/base/248569
>=20
> Log:
>   Only size and create the bio_transient_map when unmapped buffers are
>   enabled.  Now, disabling the unmapped buffers should result in the
>   kernel memory map identical to pre-r248550.
>  =20
>   Sponsored by:	The FreeBSD Foundation
>=20
> Modified:
>   head/sys/kern/vfs_bio.c
>   head/sys/vm/vm_init.c
>=20
> Modified: head/sys/kern/vfs_bio.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/sys/kern/vfs_bio.c	Thu Mar 21 07:26:33 2013
> (r248568) +++ head/sys/kern/vfs_bio.c	Thu Mar 21 07:28:15
> 2013	(r248569) @@ -586,7 +586,7 @@
> kern_vfs_bio_buffer_alloc(caddr_t v, lon
>  	 * allows to not trim the buffer KVA for the architectures
>  	 * with ample KVA space.
>  	 */
> -	if (bio_transient_maxcnt =3D=3D 0) {
> +	if (bio_transient_maxcnt =3D=3D 0 && unmapped_buf_allowed) {
>  		maxbuf_sz =3D maxbcache !=3D 0 ? maxbcache : maxbuf *
> BKVASIZE; buf_sz =3D (long)nbuf * BKVASIZE;
>  		if (buf_sz < maxbuf_sz / 10 * 9) {
>=20
> Modified: head/sys/vm/vm_init.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/sys/vm/vm_init.c	Thu Mar 21 07:26:33 2013
> (r248568) +++ head/sys/vm/vm_init.c	Thu Mar 21 07:28:15
> 2013	(r248569) @@ -189,10 +189,12 @@ again:
>  	buffer_map =3D kmem_suballoc(clean_map, &kmi->buffer_sva,
>  	    &kmi->buffer_eva, (long)nbuf * BKVASIZE, FALSE);
>  	buffer_map->system_map =3D 1;
> -	bio_transient_map =3D kmem_suballoc(clean_map,
> &kmi->bio_transient_sva,
> -	    &kmi->bio_transient_eva, (long)bio_transient_maxcnt *
> MAXPHYS,
> -	    FALSE);
> -	bio_transient_map->system_map =3D 1;
> +	if (bio_transient_maxcnt !=3D 0) {
> +		bio_transient_map =3D kmem_suballoc(clean_map,
> +		    &kmi->bio_transient_sva, &kmi->bio_transient_eva,
> +		    (long)bio_transient_maxcnt * MAXPHYS, FALSE);
> +		bio_transient_map->system_map =3D 1;
> +	}
>  	pager_map =3D kmem_suballoc(clean_map, &kmi->pager_sva,
> &kmi->pager_eva, (long)nswbuf * MAXPHYS, FALSE);
>  	pager_map->system_map =3D 1;



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