[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 111855] New: default suppression file is read 1 byte at a time
From: John Reiser <jreiser () bitwagon ! com>
Date: 2005-08-31 23:01:56
Message-ID: 20050901010154.111855.jreiser () bitwagon ! com
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=111855
Summary: default suppression file is read 1 byte at a time
Product: valgrind
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: memcheck
AssignedTo: jseward acm org
ReportedBy: jreiser bitwagon com
Version: valgrind-3.0.1 (using KDE Devel)
Installed from: Compiled sources
Compiler: gcc (GCC) 4.0.1 20050727 (Red Hat 4.0.1-5)
OS: Linux
Memcheck reads the default suppression file using one system call read() for each \
byte in the file. Ordinarily this is the slowest method. Using a larger buffer \
might reduce startup time of memcheck by enough to notice (a second or two).
Evidence: run "strace -o strace.out valgrind301 date"
then examine strace.out:
-----
open("/usr/local/valgrind301/lib/valgrind/default.supp", O_RDONLY) = 3
read(3, "#", 1) = 1
read(3, " ", 1) = 1
read(3, "T", 1) = 1
read(3, "h", 1) = 1
read(3, "i", 1) = 1
read(3, "s", 1) = 1
read(3, " ", 1) = 1
read(3, "i", 1) = 1
read(3, "s", 1) = 1
read(3, " ", 1) = 1
read(3, "a", 1) = 1
read(3, " ", 1) = 1
read(3, "g", 1) = 1
read(3, "e", 1) = 1
read(3, "n", 1) = 1
read(3, "e", 1) = 1
read(3, "r", 1) = 1
read(3, "a", 1) = 1
read(3, "t", 1) = 1
read(3, "e", 1) = 1
read(3, "d", 1) = 1
read(3, " ", 1) = 1
read(3, "f", 1) = 1
read(3, "i", 1) = 1
...
-----
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic