erlug
[Top] [All Lists]

Re: [Erlug] ext3

To: erlug@xxxxxxxxxxxxxx
Subject: Re: [Erlug] ext3
From: Zen <zen@xxxxxxxxx>
Date: Mon, 10 Dec 2001 15:41:24 +0100
On Mon, Dec 10, 2001 at 01:56:47PM +0100, Marco Valli wrote:
> Si può modificare la frequenza di journaling dell'ext3?
> E se si può, dove trovo info su come farlo?

        Si puo', si puo'... :)
        Use the source, Luke!

        Se hai un k 2.4 lo fa kjournald.
        Dal mio dmesg:

        Journalled Block Device driver loaded
        kjournald starting.  Commit interval 5 seconds

        Da /usr/src/linux/fs/jbd/journal.c

 * kjournald: The main thread function used to manage a logging device
 * journal.
 *
 * This kernel thread is responsible for two things:
 *
 * 1) COMMIT:  Every so often we need to commit the current state of the
 * filesystem to disk.  The journal thread is responsible for writing
 * all of the metadata buffers to disk.
 *

        i sorgenti sono in /usr/src/linux/fs/jbd.
        journal.c:      journal->j_commit_interval = (HZ * 5);

        Ora tutto sta a trovare il valore di HZ :)
        Pero' in /usr/src/linux/include/asm c'e' un simpatico file
        chiamato param.h dove si trova:

        #ifndef HZ
        #define HZ 100
        #endif
        [snip]
        #ifdef __KERNEL__
        # define CLOCKS_PER_SEC 100     /* frequency at which times()
        # counts */
        # #endif
        #

        Quindi per concludere:
        si puo'.

        Tra l'altro HZ e' il valore di una "slice" di cpu assegnata
        dallo scheduler, quindi se non sbaglio la conclusione a cui sono
        arrivato leggendo i sorgenti e' stata che in realta' si puo'
        anche cambiare (non chiedetemi come, ho solo una mezz'ora).

        DISCLAIMER: Di mestiere faccio network security. I'm no kernel
        guru. :)))

HTH, ciao
-- 
'Why do you close your eyes?' 'So that the room will be empty.'
zen@xxxxxxxxx . Geek . And proud of it .
http://www.kill-9.it/jargon/html/entry/zen.html


<Prev in Thread] Current Thread [Next in Thread>