gjournal

Miroslav Lachman 000.fbsd at quip.cz
Wed Mar 4 14:54:52 CET 2009


Radim Kolar wrote:
> Jakou velikost gjournalu pouzivate? ja mam 2GB a kdyz dam dd
> if=/dev/zero of=file na gjournal disku tak mi to spadne na kernel
> panic - journal full. Zjevne kernel nechce cekat nez se to na disk
> zapise, To na mne moc nedela dojem stabilniho SW.

Pouzivam 2GB, ale ono to neni o samotne velikosti - je to o velikosti ve 
spojitosti s commit intervalem (kern.geom.journal.switch_time) a s 
rychlosti disku. Taky zalezi na tom, jestli je journal a data na stejnem 
fyzickem disku, nebo na dvou samostatnych (doporuceno).

kern.geom.journal.stats.low_mem: 419
kern.geom.journal.stats.journal_full: 0
kern.geom.journal.stats.wait_for_copy: 0
kern.geom.journal.stats.switches: 58195
kern.geom.journal.stats.combined_ios: 11890450
kern.geom.journal.stats.skipped_bytes: 20212856832
kern.geom.journal.cache.alloc_failures: 0
kern.geom.journal.cache.misses: 256
kern.geom.journal.cache.switch: 90
kern.geom.journal.cache.divisor: 2
kern.geom.journal.cache.limit: 209715200
kern.geom.journal.cache.used: 0
kern.geom.journal.optimize: 1
kern.geom.journal.record_entries: 20
kern.geom.journal.parallel_copies: 16
kern.geom.journal.accept_immediately: 64
kern.geom.journal.parallel_flushes: 16
kern.geom.journal.force_switch: 70
kern.geom.journal.switch_time: 10
kern.geom.journal.debug: 0

tohle je nad gmirrorem ze dvou 500GB disku (gjournal se pouziva jen pro 
jednu partition)

# gjournal list
Geom name: gjournal 2419990975
ID: 2419990975
Providers:
1. Name: mirror/gm0s2f.journal
    Mediasize: 461697294848 (430G)
    Sectorsize: 512
    Mode: r1w1e1
Consumers:
1. Name: mirror/gm0s2e
    Mediasize: 2147483648 (2.0G)
    Sectorsize: 512
    Mode: r1w1e1
    Jend: 2147483136
    Jstart: 0
    Role: Journal
2. Name: mirror/gm0s2f
    Mediasize: 461697295360 (430G)
    Sectorsize: 512
    Mode: r1w1e1
    Role: Data


Zatim jsem akorat parkrat videl nasledujici hlasku v logu, ale zadny 
kernel panic:

fsync: giving up on dirty
0xffffff00038065d0: tag devfs, type VCHR
     usecount 1, writecount 0, refcount 4481 mountedhere 0xffffff00036e9800
     flags ()
     v_object 0xffffff00037815b0 ref 0 pages 51727
      lock type devfs: EXCL (count 1) by thread 0xffffff000363b340 (pid 39)
	dev mirror/gm0s2f.journal
GEOM_JOURNAL: Cannot suspend file system /vol1 (error=35).

Mirek



More information about the Users-l mailing list