From owner-freebsd-arm@FreeBSD.ORG Mon May 14 19:23:18 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 931C0106566B for ; Mon, 14 May 2012 19:23:18 +0000 (UTC) (envelope-from fredrik.siken@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 529B08FC0A for ; Mon, 14 May 2012 19:23:18 +0000 (UTC) Received: by yenl8 with SMTP id l8so5908707yen.13 for ; Mon, 14 May 2012 12:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ugUrn12NOshwjIisw/wfCh6OTXCptmm12PN1R/gLsr4=; b=APL/eSeT9vdRHpbZkcIv+WI47GtrM7Wdeu+VGTa1IMzKhkXS+R7hisbg4IJ4HOQOf1 ryNpd9PspLQ2Qyi5DopTe5kXaZ1Mkli4CK7tnarRuv2eQqUEcGZOrXwq8A/O2TL1Kj7q fjiNUTkvE6rCB9u21SVB69CYGUHAnJlq/9NJo9z0iwSGplm1mNTZZlpX1N/5oHce0zS1 TibnVlyyxQPrtqAR2jbFcQNFiet/pOK6CXoyaoKeaRoJtKqVJfjG7rtmuymfnYNB0+P8 DVwNBWihSzVNyVmcVo9F/b49nvp5YiVpEf71Hm5s0t4JgPzz8dqaFmrW+MMIfzk39G3x fv3g== MIME-Version: 1.0 Received: by 10.50.17.169 with SMTP id p9mr168990igd.60.1337023391783; Mon, 14 May 2012 12:23:11 -0700 (PDT) Received: by 10.50.91.131 with HTTP; Mon, 14 May 2012 12:23:11 -0700 (PDT) Date: Mon, 14 May 2012 21:23:11 +0200 Message-ID: From: =?ISO-8859-1?Q?Fredrik_Sik=E9n?= To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 13x longer execution times before remount X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2012 19:23:18 -0000 Hi, I've an 8.2-Release running on an ARM with poor execution performance before a remount is performed. The scenario is as follows 0) I mount an UFS SSD disk # mount -o noclusterr -o noclusterw /dev/ad0s1 /mnt/ 1) I copy an executable to an UFS mounted SSD disk and measure its time of execution from start to stop 2) I remount the system (umount/mount) 3) I perform the same steps as in 1) but now with a performance increase of 13x Other tests performed: - Tested on a UFS USB stick with the same behaviour - Tested to write to an NFS mounted disk and this gives the expected behaviour - the same time before and after a remount. - Running the same version on a x86 gives the expected behaviour - the same time before and after a remount. Results after file is copied but before a remount # time ./test 10000 1000000 size = 10000, no = 1000000 133.000u 0.000s 2:13.53 99.8% 3282+18575k 0+0io 0pf+0w Results after a remount # time ./test 10000 1000000 size = 10000, no = 1000000 7.000u 0.000s 0:07.82 99.8% 3286+18595k 0+0io 0pf+0w The test application source looks like this #include #include #include int main(int argc, char **argv) { int size = atoi(argv[1]); int no = atoi(argv[2]); printf("size = %d, no = %d\n", size, no); { int i; for(i = 0 ; i