From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 25 16:01:55 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 35A3EDAC for ; Fri, 25 Oct 2013 16:01:55 +0000 (UTC) (envelope-from patrick_dkt@yahoo.com.hk) Received: from nm30-vm2.bullet.mail.sg3.yahoo.com (nm30-vm2.bullet.mail.sg3.yahoo.com [106.10.151.177]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9BC1D2011 for ; Fri, 25 Oct 2013 16:01:53 +0000 (UTC) Received: from [106.10.166.60] by nm30.bullet.mail.sg3.yahoo.com with NNFMP; 25 Oct 2013 15:59:05 -0000 Received: from [106.10.151.250] by tm17.bullet.mail.sg3.yahoo.com with NNFMP; 25 Oct 2013 15:59:05 -0000 Received: from [127.0.0.1] by omp1021.mail.sg3.yahoo.com with NNFMP; 25 Oct 2013 15:59:05 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 721773.24661.bm@omp1021.mail.sg3.yahoo.com Received: (qmail 90938 invoked by uid 60001); 25 Oct 2013 15:59:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.hk; s=s1024; t=1382716745; bh=N/AD5FVO1XN+R5H24fVEPrcWU0KXtZp9zBTRNxk0lC4=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=IlqKCKl7qyOMJv0ALcGJMEwKFqkKX9p475q1Urmbwfbuhs3FCgIzEHtASwZQvxJkNf3ALUhUzRnL80qPHyEKEpwX0pk/dqRNtlBeGSAwlCJ4qKxSmGSrXFqj3ypIPPi4elf4/9L8nom354TeqE9UNV5puxwUisWbETNoQ/hnTnE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.hk; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=JtYk3b5XFziqGUHmnPjlOh/YnpraiQV/E3fsw0Xo4xkdvpm1rDFutST0C9tqr+CSQqbUlgMMc1C80LgNpeHJJNI0yU/ggB2udPFLmCWeWdusyPDeAE9w/1+u5AeeqAISWHBkMM7e4OLVtHkoFmNNLM6YAnFOCuwoPTN6mXipVu4=; X-YMail-OSG: h33wq0wVM1k0SfthnLZC7MiOKlNkR1D4RVwvX88GgRdw5t9 pFLQq.Fd4wHtAwJ2eP7v9lMGZWkpAALadiZNK4NLqsyDK0USbH4WeHee8TFW xMY.2HVOhDEt.EJNOURBJVe0fsnUOSsgxfysKU5ZYoccaIy2JL0Ny.keQTPe 5PpYhlPIVd.dO9gDsuUJzYU5zS3b8jJ_OSfHjk5AxeEFhImhWYVM8yls2PBV v3_5oU.rK9H2gBBs1m5l5Zbw38qufgPwHhufvCi6JmSBNLiGA2T2b4kutqaG 9kO99MMEC5MVe3A7tDAqUaX5TJzxNdCIqt_jV_1sPb65oMLliRnUxN4ENalv _GtY.qLOhQ312SPhoJw9XAMfHYd_khnH6yDoYthYqxByqAar5VI64GZF0wgC SXNqbrGR3Rq20uPonTX3Mbl7vkc4qPjT41ihc3D78qnx2b0CBwHotE8n0V1w XaIFkexodl0O.2R2hP34zz6dictS1rwUe97PF37.QWnvPojPzpsJ6AJ4Ns7N qNfw7TDXSTFj0cxAf7T7oaMnHIor9f1OZq93rcoJaBrfHoiy5hMEC_fY- Received: from [61.15.240.133] by web193506.mail.sg3.yahoo.com via HTTP; Fri, 25 Oct 2013 23:59:05 SGT X-Rocket-MIMEInfo: 002.001, SGkgLAoKSSBoYXZlIGFza2VkIHRoZSBxdWVzdGlvbiBpbiBmcmVlYnNkLXF1ZXN0aW9ucyBidXQgY2FuJ3QgZ2V0IHJlcGx5IHNvIEkgdHJpZWQgdG8gYXNrIGhlcmUgZmlyc3QgYmVmb3JlIHN1Ym1pdHRpbmcgYSBidWcgcmVwb3J0LgoKCkkgaGF2ZSBhIEZyZWVCU0QgOS4yIDY0IGJpdCBpbnN0YWxsZWQgaW4gYSBWTS4KVGhlIGhvc3QgaXMgV2luZG93cyA3IHdpdGggdm13YXJlIHdvcmtzdGF0aW9uLCB0aGUgaG9zdCBpcyB1c2luZyBhbiBhZHZhbmNlZCBmb3JtYXQgKDRrKSBoYXJkZGlzay4KCgpJIGhhdmUBMAEBAQE- X-Mailer: YahooMailWebService/0.8.160.587 References: Message-ID: <1382716745.90609.YahooMailNeo@web193506.mail.sg3.yahoo.com> Date: Fri, 25 Oct 2013 23:59:05 +0800 (SGT) From: Patrick Dung Subject: Strange write speed between /file and /tmp/file (may be related to 4k advanced format) To: freebsd hackers MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Patrick Dung List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 16:01:55 -0000 Hi ,=0A=0AI have asked the question in freebsd-questions but can't get repl= y so I tried to ask here first before submitting a bug report.=0A=0A=0AI ha= ve a FreeBSD 9.2 64 bit installed in a VM.=0AThe host is Windows 7 with vmw= are workstation, the host is using an advanced format (4k) harddisk.=0A=0A= =0AI have noticed there is strange write speed between /file and /tmp/file.= =0A/dev/da0p3 is UFS2 created by default installer.=0A=0AI am thinking if t= he problem is caused by disk alignment.=0Ada0p3 starting sector is 786594, = which seems not aligned by 4k (786594 *512/4096=3D98324.25)=0AThe dd result= is repeatable.=0A=0A=0A[root@testing2 /]# df -P=0AFilesystem=0A 512-blocks= =A0=A0=A0=A0=A0 Used=A0=A0=A0=A0 Avail Capacity=A0 Mounted=0A on=0A/dev/da0= p3=A0=A0=A0 6518712=A0=A0 4621000=A0=A0 1376216=A0=A0=A0 77%=A0=A0=A0 /=0Ad= evfs=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 2=A0=A0=A0=A0=A0=A0=A0=A0 2= =A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0 100%=A0=A0=A0 /dev=0Afdescfs=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 2=A0=A0=A0=A0=A0=A0=A0=A0 2=A0=A0=A0=A0=A0=A0=A0= =A0 0=A0=A0 100%=A0=A0=A0 /dev/fd=0Aprocfs=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 8=A0=A0=A0=A0=A0=A0=A0=A0 8=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0 100%=A0= =A0=A0 /proc=0Ahost:hgfs=A0=A0 591368064 405571456 185796608=A0=A0=A0 69%= =A0=A0=A0 /mnt-hgfs=0A[root@testing2 /]# gpart show=0A da0=0A=3D>=A0=A0=A0= =A0 34=A0 7548861=A0 da0=A0 GPT=A0 (3.6G)=0A=A0=A0=A0=A0=A0=A0 34=A0=A0=A0= =A0=A0 128=A0=A0=A0 1=A0 freebsd-boot=A0 (64k)=0A=A0=A0=A0=A0=A0 162=A0=A0 = 786432=A0=A0=A0 2=A0 freebsd-swap=A0 (384M)=0A=A0=A0 786594=A0 6760448=A0= =A0=A0 3=A0 freebsd-ufs=A0 (3.2G)=0A=A0 7547042=A0=A0=A0=A0 1853=A0=A0=A0= =A0=A0=A0 - free -=A0 (926k)=0A=0A[root@testing2 /]# dd if=3D/dev/zero of= =3D/tmp/file bs=3D50M count=3D4=0A4+0 records in=0A4+0 records out=0A209715= 200 bytes transferred in 10.303288 secs (20354202 bytes/sec)=0A[root@testin= g2 /]# rm /tmp/file=0A[root@testing2 /]# dd if=3D/dev/zero of=3D/tmp/file b= s=3D50M count=3D4=0A4+0 records in=0A4+0 records out=0A209715200 bytes tran= sferred in 9.789672 secs (21422087 bytes/sec)=0A[root@testing2 /]# rm /tmp/= file=0A[root@testing2 /]#=0A ~^C=0A[root@testing2 /]# dd if=3D/dev/zero of= =3D/file bs=3D50M count=3D4=0A4+0 records in=0A4+0 records out=0A209715200 = bytes transferred in 6.826694 secs (30719877 bytes/sec)=0A[root@testing2 /]= # rm /file=0A[root@testing2 /]# dd if=3D/dev/zero of=3D/file bs=3D50M count= =3D4=0A4+0 records in=0A4+0 records out=0A209715200 bytes transferred in 6.= 955417 secs (30151348 bytes/sec)=0A[root@testing2 /]# rm /file=0A=0AThanks = and regards,Patrick Dung