Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87053 - captive-ntfs causes sys-fs/lufis to allocate huge amounts of ram
Summary: captive-ntfs causes sys-fs/lufis to allocate huge amounts of ram
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
: 96401 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-28 18:22 UTC by Robert Pitt
Modified: 2005-06-17 11:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Pitt 2005-03-28 18:22:01 UTC
using a disk with captive-ntfs (i was using the binaries the program offers to download from microsoft) for a prolonged period (using a disk constantly for about an hour or so) causes the lufis process to allocate all my ram and swap (512mb of each) bringing my system to its knees.

Reproducible: Always
Steps to Reproduce:
1. use captive-ntfs and start copying or writing a large amount of files to/from an ntfs drive
2. this also happened when i tried to download the fedora core 2 dvd image to an ntfs hard drive
3.




# emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 21 2005, 04:22:06)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://bandit.cmt.wan/gentoo-portage"
USE="x86 3dnow 3dnowext X aac alsa apache2 apm arts avi berkdb bitmap-fonts cdr
crypt cups curl dvdr emacs emboss encode esd fam ffmpeg flac font-server
foomaticdb fortran gdbm gif gnome gpm gtk gtk2 hal imagemagick imlib innodb ipv6
java jpeg junit kde kdeenablefinal kdexdltas libg++ libwww mad matroska mcal
mikmod mmx motif mp3 mpeg mpm-prefork mysql nas ncurses nls nptl nptlonly
offensive oggvorbis opengl oss pam pdflib perl php png python qt quicktime
readline ruby sdl silc spell sse sse2 ssl subversion svg svga tcltk tcpd tetex
tidy tiff truetype truetype-fonts type1-fonts v4l vhosts xml xml2 xmms xosd xslt
xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2005-03-30 11:15:31 UTC
I have the same effect using captive-ntfs to play mp3s with amarok from a ntfs partition. top shows that lufis is the process using the memory. Even after I umount the memory still doesn't get freed.

4203 root      20   0  429m 215m  820 D  0.3 42.9   2:25.06 lufis

Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2005-04-16 15:12:51 UTC
see http://article.gmane.org/gmane.comp.file-systems.fuse.devel/1408 for the comment from the fuse developer.

does the memory get freed after rmmod fuse?

is the lufis process removed after umount?

usually avery memory leak is freed after the program exited.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2005-04-17 00:54:59 UTC
After umount and modprobe -r fuse memory usage is still very high. The lufis process still keeps on running. I bought 512MB more memory and can say that the memory usage doesn't continue to grow after some point and captive can be used if you have 1 GB of memory. 
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2005-04-28 01:27:41 UTC
This bug tells me that captive is not for general usage ..

Seems to be more for quick-copy-file or rescue cases.
I had also big memory consumption with lufis+captive, but the memory was freed after I unmounted it.

This is not really a gentoo bug, so please contact upstream so that they can improve their package.
The captive project looks for a new maintainer, so in case you want to fix it yourself, you are invited to do so.
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2005-06-17 11:29:47 UTC
*** Bug 96401 has been marked as a duplicate of this bug. ***