From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ewerton Romulo Subject: Re: Run linux in ramdisk(tmpfs) and use a mounted HD for files cause memory and CPU overflow! Date: Tue, 28 Jun 2005 15:06:55 -0300 Message-ID: <1f52e8ed0506281106392511f2@mail.gmail.com> References: <1f52e8ed050627021872365696@mail.gmail.com> <20050627142013.GA11425@vagabond> Reply-To: Ewerton Romulo Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from wproxy.gmail.com ([64.233.184.194]:16274 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S262160AbVF1SGz convert rfc822-to-8bit (ORCPT ); Tue, 28 Jun 2005 14:06:55 -0400 Received: by wproxy.gmail.com with SMTP id 57so652170wri for ; Tue, 28 Jun 2005 11:06:55 -0700 (PDT) To: Jan Hudec In-Reply-To: <20050627142013.GA11425@vagabond> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Thanks for answer Jan > > I am building a very small linux system to boot off an IDE-HD modul= e > > and run from a ramdisk. >=20 > Ramdisk *OR* tmpfs? They are completely different things. Sorry. I can say that is a ramdisk formatted to use tmpfs filesystem! If I need to select one, so can I say that is a tmpfs! > > He=B4s working well and have no problem funtion like that. I=B4m = using > > linux kernel 2.4.30! > > But some times I need to mount a partion on HD and use a director= y to > > save many files in it! >=20 > How large are those "many files"? Where do the data come from? >=20 Any files!! Any size!!! From any where!!! If I=B4d like to save a .txt file ... or download a .tgz file and save in it .. a gif figure to using later ... just a jpeg ... a HTML file ... a big movie file .. a mp3 file ... just a .bin ... or linux module ... download from ftp =2E.. any size ... any file ... from any where!! If I mount a partion o= n HD and put things in it ... consumes memory (RAM) ... and problem appear!!! Not important if the file is big or not, if I put things there I had this problem!! Suppose that I had 100MB in a partion mounted HD !!! If I put many 3KB txt in there ... I think that I=B4ll not problem with memory!!! But it=B4s consumes my memory!!! > > I mount it, create a directory there but ... when I try to use th= e HD > > mount with the directory, save many files in it, the memory go up .= =2E up > > ... and the linux stop working!!!o > > If I umount the partion everything return to function well. >=20 > How do you umount it, when it stopped working?! >=20 No! I umount before it=B4s stopped!!! Before memory go 100% .. And things back to normal! =20 > Anyway, could you provide contents of /proc/meminfo, /proc/slabinfo, > /proc/mounts and /proc/swaps when the bad things are happening? I=B4ll take a look in it and post here! >=20 > > When I mount the partion again and begin to put files in it ... t= he > > problem return! > > I try to mount partion using ext2 and ext3 ... the problem is the > > same!!! >=20 > I'd be surprised if there was a difference. The filesystems are quite > similar. In this case I only use it to see if I had different result! I try to mount a fat partion too!! Same result!!! - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html