From owner-freebsd-bugs@FreeBSD.ORG Sun Nov 25 21:17:59 2007 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C69B16A41A for ; Sun, 25 Nov 2007 21:17:59 +0000 (UTC) (envelope-from pentarh@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id EFA1713C457 for ; Sun, 25 Nov 2007 21:17:58 +0000 (UTC) (envelope-from pentarh@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so83214anc for ; Sun, 25 Nov 2007 13:17:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=qHKWPRv9kjWGYsPPSfZAEaXaIvObbpWfiJwo2CUvEMI=; b=sCzRmCFTnqWdAeQ3TFcR+z0x1mV4tXmlfM1jXxwVYbOIOXZAyMvO5yrOW8KVUQOsJtuzI/KdIzIcNPiKSModCTpC8ug8h2l2LHJE2Bw419f3SmRFXPOavDPh7GubXTbt3u0OK8GM76n1GB/QkUmd4hRvBk1jARasZBDPyEvcCYY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BCBTzYuv3OURn350bpFqWLdSQVRtAC9fVm04muaE5mWYWFL4rL9W8MOxXQhqdnmJn9YfO0k0Mu0aDippMO6DkBqp4wG83nvq2R0iS+axzpzKynK74tF5bT4Ua48Q1VGY53e+dMWWG9EHitg5/BBAnGNhP6lJJlosbvvDO25GRHM= Received: by 10.142.215.5 with SMTP id n5mr155527wfg.1196023845459; Sun, 25 Nov 2007 12:50:45 -0800 (PST) Received: by 10.142.180.18 with HTTP; Sun, 25 Nov 2007 12:50:45 -0800 (PST) Message-ID: <408514ed0711251250k33d1039fi416f91ee4099b841@mail.gmail.com> Date: Sun, 25 Nov 2007 22:50:45 +0200 From: "Pentarh Udi" To: freebsd-bugs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: ata_alloc_request() failure?! X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2007 21:17:59 -0000 FreeBSD 6.2-RELEASE amd64 1. How it appears I dont know why but it appeared when i configured geom_stripe on two ata disks and made a heavy load. So i get the tons of kernel messages: ad4: FAILURE - out of memory in start ad6: FAILURE - out of memory in start ad6: FAILURE - out of memory in start ad6: FAILURE - out of memory in start I did some research and didnt found any answers on this problem, but i found a source of this error: ================== /sys/dev/ata/ata-disk.c: line 215 static void ad_strategy(struct bio *bp) { device_t dev = bp->bio_disk->d_drv1; struct ata_device *atadev = device_get_softc(dev); struct ata_request *request; if (!(request = ata_alloc_request())) { device_printf(dev, "FAILURE - out of memory in start\n"); biofinish(bp, NULL, ENOMEM); return; } ================== Also that is another point to see the problem: # vmstat -z | egrep "LIMIT|ata" ITEM SIZE LIMIT USED FREE REQUESTS FAILURES ata_request: 336, 0, 0, 1298, 1769922, 4 As you can see there are ata_request failures. I even tryed to increase kmem_size up to 1Gb instead of 400+M default. There was no effect. When I make a heavy load on this disk, i get failures and broken files. I saw this error on other machine (also FreeBSD 6.2 RELEASE amd64) with geom_mirrror configured (under heavy load) - but not so much - one or two kernel messages during "life". So... what should i do? -- Regards, Pentarh Udi