From owner-freebsd-stable@FreeBSD.ORG Thu Mar 28 17:24:28 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 06039227; Thu, 28 Mar 2013 17:24:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 1D286793; Thu, 28 Mar 2013 17:24:26 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id k14so5453034wer.13 for ; Thu, 28 Mar 2013 10:24:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=MKzBdXfu9ezhnoI7zwkiT1qAsSY7jayRLZvpO+clr6M=; b=Q1mtXwEbYFpr1c5lrkx0vY9TR7fGpeJpndKRPcjCym+UmA8VygjIoNg5DSWxal69R/ AubMmnG6U1xByWGk7JqjfA6NWmvXB3GZ6bJThbw1qcvDi1PwlMvB+zD7wF+uk1PuxA1n VL9i/9yAWGa9EDJwerzw70l0695/BbukwqHvcNR2dh2K9NoIBe40fMCA9EepZ2ajuiPb HaeKbL2ztbhWo4Z3YRKYEnCtFMPUzrxVLTu4E9I8Egkznkwa50PulFZ+4u6/X0VsAx23 HA9yeNMaz5cjKoQAbwz51Wjb8ZUnB6RNu3m4CYOBJp4TCfJWdDDpx6o4szSn9uQasojW aMGA== MIME-Version: 1.0 X-Received: by 10.180.89.105 with SMTP id bn9mr13516194wib.26.1364491466232; Thu, 28 Mar 2013 10:24:26 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.108.130 with HTTP; Thu, 28 Mar 2013 10:24:26 -0700 (PDT) In-Reply-To: <853249275.20130328200509@serebryakov.spb.ru> References: <51536306.5030907@FreeBSD.org> <20130328160953.f0ca035403fb4b4adddfe6e0@ddteam.net> <853249275.20130328200509@serebryakov.spb.ru> Date: Thu, 28 Mar 2013 10:24:26 -0700 X-Google-Sender-Auth: pCA09woODXOpCKaYKIfIYyu3I7k Message-ID: Subject: Re: Any objections/comments on axing out old ATA stack? From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Aleksandr Rybalko , freebsd-current@freebsd.org, freebsd-stable@freebsd.org, Alexander Motin X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Mar 2013 17:24:28 -0000 On 28 March 2013 09:05, Lev Serebryakov wrote: > Yes: USB UMASS. It uses CAM too, and useful for very small systems, > like 4MiB FLASH and 16MiB RAM (yes, whole system image, kernel and > all, should be packed to 4MiB). > > Please note, Adrian speaks about CAM, not only CAM + ATA. And I'm not at all saying we should keep the old ATA driver around. I'm just pointing out a set of use cases that most FreeBSD developers aren't involved with and I'd like to find a way to squeeze it more efficiently into embedded platforms. I've never had any noticable performance issues with CAM on my embedded MIPS boards because it's typically pushing packets. It's just the resultant binary size of the whole stack that's a problem. adrian@freefall:~/public_html/ath$ cat AP121-nodebug.txt | grep scsi text data bss dec hex filename 49372 10672 80 60124 eadc scsi_all.o 21200 2576 16 23792 5cf0 scsi_da.o 23288 1488 16 24792 60d8 scsi_xpt.o adrian@freefall:~/public_html/ath$ cat AP121-nodebug.txt | grep cam text data bss dec hex filename 3824 96 16 3936 f60 cam.o 13552 144 16 13712 3590 cam_periph.o 2344 144 0 2488 9b8 cam_queue.o 640 48 0 688 2b0 cam_sim.o 40684 752 192 41628 a29c cam_xpt.o adrian@freefall:~/public_html/ath$ cat AP121-nodebug.txt | grep umass text data bss dec hex filename 22592 1072 16 23680 5c80 umass.o adrian@freefall:~/public_html/ath$ cat AP121-nodebug.txt | egrep '(cam_|umass|scsi_)' 13552 144 16 13712 3590 cam_periph.o 2344 144 0 2488 9b8 cam_queue.o 640 48 0 688 2b0 cam_sim.o 40684 752 192 41628 a29c cam_xpt.o 49372 10672 80 60124 eadc scsi_all.o 21200 2576 16 23792 5cf0 scsi_da.o 23288 1488 16 24792 60d8 scsi_xpt.o 22592 1072 16 23680 5c80 umass.o adrian@freefall:~/public_html/ath$ cat AP121-nodebug.txt | egrep '(cam_|umass|scsi_)' | awk '{a+=$4} END {print a}' 190904 It doesn't seem like a lot, but it does add up.. Adrian