From owner-freebsd-stable@FreeBSD.ORG Tue Nov 13 22:20:28 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDC7816A41B for ; Tue, 13 Nov 2007 22:20:28 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.237]) by mx1.freebsd.org (Postfix) with ESMTP id 7E32A13C465 for ; Tue, 13 Nov 2007 22:20:28 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so1234162nzf for ; Tue, 13 Nov 2007 14:20:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=uLjcIlGfIjn/L3zMFpWhPj5JMVCHf2ECIV12yRy1/x8=; b=Vy0TxbF893M3wte/QzsWuj9fKLQSN2hDCflvx2a01DArWV31TzkyQH9gYvV9Ype+tOE+i6ok2/GgjHKHYIDMUVbOINb5CclnmrVvLV3K2xQVk+CNuRSac8U8WLytDnpgT6/zRSCJ9S77Tl7w/LYRYLcWCLDP6kUWUpsQt/+Gnso= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=B0vjkzxhf8Ulmo5bs4Ryfryg1X1qoW9naF7XL8+N0FIBQenw5aqg1b+Ui3wKsZ69fSQnSyfUGhqQBkFu71mkokIfGNccORg7Bx+lIqFjLrHAYkF6lEYAXF6Lk8SaRthaybAbxBPvPQNGNpRDpNfFGCPaO0flZyd7r3ociLNx6nA= Received: by 10.142.212.19 with SMTP id k19mr980508wfg.1194992016486; Tue, 13 Nov 2007 14:13:36 -0800 (PST) Received: by 10.142.230.18 with HTTP; Tue, 13 Nov 2007 14:13:36 -0800 (PST) Message-ID: Date: Tue, 13 Nov 2007 14:13:36 -0800 From: "Kip Macy" To: "Vivek Khera" In-Reply-To: <91893E44-B766-4B31-9DA7-62F5EC0CCD45@khera.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <0ECA0F43-497A-4823-8731-D517889D5822@khera.org> <91893E44-B766-4B31-9DA7-62F5EC0CCD45@khera.org> Cc: FreeBSD Stable List Subject: Re: reboot after panic: vm_page_unwire: invalid wire count: 0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2007 22:20:28 -0000 Unfortunately, ZERO_COPY_SOCKETs have long been a known source of problems. I think also, when a page is copied as part of COW the new page is unwired (see pmap_copy et al.), this could lead to socow_iodone unwiring after send a page that was not wired. An added issue is that parts of the VM assume that COW and wired are mutually exclusive which the socow code violates. At some point in the near future I may be adding support for doing zero copy send without COW for blocking sockets. The one down side of this approach is that if you have multiple threads in your process it widens the window during which they can stomp on data that you're sending. Nonetheless, this would be a bug in the application code. More complicated would be zero-copy non-COW send on non-blocking sockets as it would require an extension to kevent for completion notification. In the meantime, your best bet is to disable ZERO_COPY_SOCKETS. -Kip On Nov 13, 2007 1:59 PM, Vivek Khera wrote: > > On Nov 13, 2007, at 4:50 PM, Vlad GALU wrote: > > >> vmio = 1 > >> offset = Unhandled dwarf expression opcode 0x93 > >> (kgdb) > >> > > > > Do you happen to have ZERO_COPY_SOCKETS in your kernel config? > > > > > > Yes, I do. Are they known to be bad under certain loads or just in > general. I don't have this issue with any other web server running > the same kernel config but those are amd64 boxes mostly. > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >