From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 13 02:40:25 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABAE116A4CE for ; Fri, 13 Feb 2004 02:40:25 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A84D443D39 for ; Fri, 13 Feb 2004 02:40:25 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i1DAePbv048486 for ; Fri, 13 Feb 2004 02:40:25 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i1DAePHB048485; Fri, 13 Feb 2004 02:40:25 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 13 Feb 2004 02:40:25 -0800 (PST) Resent-Message-Id: <200402131040.i1DAePHB048485@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, chc Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29D4A16A4CE for ; Fri, 13 Feb 2004 02:30:22 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F76443D2F for ; Fri, 13 Feb 2004 02:30:22 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i1DAUL72098938 for ; Fri, 13 Feb 2004 02:30:21 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i1DAULwP098937; Fri, 13 Feb 2004 02:30:21 -0800 (PST) (envelope-from nobody) Message-Id: <200402131030.i1DAULwP098937@www.freebsd.org> Date: Fri, 13 Feb 2004 02:30:21 -0800 (PST) From: chc To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.0 Subject: gnu/62782: strlcpy performance problem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2004 10:40:25 -0000 >Number: 62782 >Category: gnu >Synopsis: strlcpy performance problem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 13 02:40:25 PST 2004 >Closed-Date: >Last-Modified: >Originator: chc >Release: 4.8 >Organization: >Environment: >Description: strlcpy.c line 71: while (*s++); /* performance problem when src is mmap pointer */ Mmap a big file which is above 500M and use strlcpy. I found it was very slow. >How-To-Repeat: mmap a big file and use strlcpy() to copy some data. >Fix: It seems no way to solve it. >Release-Note: >Audit-Trail: >Unformatted: