Hi. I am using a large storage which is ext2 file system of 1T byte. It has many file types, doc, mail data, zip, etc. It doesn't have a database file. I want to change the file system from ext2 to ext3. It also can't divide to any partitions. How to decide journal mode and journal size? Please advice to me. Recommend a journal mode. (orderd or journal) Recommend a journal size. (default = 8192 block, I guess it is not enough to journal file) Best regard.
On Wed, Apr 03, 2002 at 03:46:09PM +0900, ?$B?9Eh ?$B=(<y wrote:> I am using a large storage which is ext2 file system of 1T byte. > It has many file types, doc, mail data, zip, etc. It doesn't have > a database file. I want to change the file system from ext2 to > ext3. It also can't divide to any partitions. > > How to decide journal mode and journal size? > Please advice to me. > > Recommend a journal mode. (orderd or journal).. or writeback. It depends on what you want to do with it.> Recommend a journal size. > (default = 8192 block, I guess it is not enough to journal file)The journal size is selected automatically if you use "tune2fs -j" -- Ralf Hildebrandt (Im Auftrag des Referat V A) Ralf.Hildebrandt@charite.de Charite Campus Virchow-Klinikum Tel. +49 (0)30-450 570-155 Referat V A - Kommunikationsnetze - Fax. +49 (0)30-450 570-916 I was married by a judge. I should have asked for a jury. - Groucho Marx
Diego SANTA CRUZ
2002-Apr-03 12:23 UTC
Re: Re: RE:Re: RE:How to decide mode and journal size?
On Wed, 2002-04-03 at 11:21, Andreas Dilger wrote: [snip]> Note that it is possible for the entire > journal to be pinned in memory, so if you make the journal too large, > you may have memory problems. >Interesting point! How is this affected if there are several ext3 filesystems mounted? Can all journals be resident in memory at a time? I have 5 ext3 filesystems, 4 of them with a 32MB journal, and one with a 1MB journal (small /boot partition). Does this mean that I can have 129 MB of memory used by the ext3 journals? Since this is a laptop (256 MB) and normally there is not that much fs activity (although sometimes I do really stress it), is it advisable to reduce the journal size to avoid the above problem (if it is a problem that is)? Best, Diego -- ------------------------------------------------------- Diego Santa Cruz PhD. student Publications available at http://ltswww.epfl.ch/~dsanta Signal Processing Institute (ITS) -- formerly LTS Swiss Federal Institute of Technology (EPFL) EPFL - STI - ITS, CH-1015 Lausanne, Switzerland E-mail: Diego.SantaCruz@epfl.ch Phone: +41 - 21 - 693 26 57 Fax: +41 - 21 - 693 76 00 -------------------------------------------------------
On Wed, Apr 03, 2002 at 02:23:01PM +0200, Diego SANTA CRUZ wrote:> Interesting point! > > How is this affected if there are several ext3 filesystems mounted? Can > all journals be resident in memory at a time?The journal is NOT in memory. That would make little sense in case of a crash, would it? -- Ralf Hildebrandt (Im Auftrag des Referat V A) Ralf.Hildebrandt@charite.de Charite Campus Virchow-Klinikum Tel. +49 (0)30-450 570-155 Referat V A - Kommunikationsnetze - Fax. +49 (0)30-450 570-916 There are two ways to write error-free programs. Only the third one works.
On Wed, 2002-04-03 at 14:40, Ralf Hildebrandt wrote:> On Wed, Apr 03, 2002 at 02:23:01PM +0200, Diego SANTA CRUZ wrote: > > > Interesting point! > > > > How is this affected if there are several ext3 filesystems mounted? Can > > all journals be resident in memory at a time? > > The journal is NOT in memory. That would make little sense in case of > a crash, would it? >Of course the journal is not *only* in memory and is always written to disk, but it could very well be that an image of it is in memory. At least I would expect that an equivalent representation for part of the journal is resident in memory to speed things up. Diego -- ------------------------------------------------------- Diego Santa Cruz PhD. student Publications available at http://ltswww.epfl.ch/~dsanta Signal Processing Institute (ITS) -- formerly LTS Swiss Federal Institute of Technology (EPFL) EPFL - STI - ITS, CH-1015 Lausanne, Switzerland E-mail: Diego.SantaCruz@epfl.ch Phone: +41 - 21 - 693 26 57 Fax: +41 - 21 - 693 76 00 -------------------------------------------------------