Package: tcpxtract
Version: 1.0.1-6
Severity: important
Tags: patch

tcpxtract calls sync() after extracting each packet of data to one of the 
output files.
This has as a result of huge harddisk activity even when both source and 
destination lies in ramdisk (tmpfs)

Once sync() calls get removed using attached patch, time to extract files from 
a 10 mb stream decreases from
several minutes (during which harddisk emits loud noise) to about a second.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages tcpxtract depends on:
ii  libc6                         2.11.2-13  Embedded GNU C Library: Shared lib
ii  libpcap0.8                    1.1.1-3    system interface for user-level pa

tcpxtract recommends no packages.

tcpxtract suggests no packages.

-- Configuration Files:
/etc/tcpxtract.conf changed [not included]

-- no debconf information
diff -u tcpxtract-1.0.1.orig/extract.c tcpxtract-1.0.1/extract.c
--- tcpxtract-1.0.1.orig/extract.c	2005-10-04 19:28:46.000000000 +0200
+++ tcpxtract-1.0.1/extract.c	2011-04-17 19:33:35.000000000 +0200
@@ -163,7 +163,6 @@
         error("Quiting.");
     }
     elist->nwritten += nbytes;
-    sync();
 }
 
 /* remove all finished extracts from the list */

Reply via email to