[Btrfs-devel] performance fixes pushed out

Bron Gondwana brong at fastmail.fm
Wed Jun 20 18:00:05 PDT 2007


On Thu, 21 Jun 2007 08:06:27 +1000, "Bron Gondwana" <brong at fastmail.fm> said:
> I'm going to run 'badblocks' over the device first this time and see if
> anything shows up!

My original testing device was 7Gb, but I didn't need that much space and I
decided I'd prefer a few more partitions to play with instead, so I'm working
with a 1Gb partition now, /dev/sda8 (it's an ide drive, but with the new
ata drivers in 2.6.22 - Ubuntu Gutsy)

I also copied all the files off the old reiserfs (/extra), reformatted it,
copied them all back.

So here are my actions:

sudo mkfs.btrfs /dev/sda8
sudo mount /shared
grep /shared /etc/fstab 

  => /dev/sda8       /shared btrfs noatime,notail,data=journal 0 0
   - I guess I didn't ever fix those up.  Will the mount options matter?
sudo btrfsctl -s brong /shared
sudo chown brong.brong /shared/brong

cp -av Maildir .offlineimap* .mutt* /shared/brong

`.mutt/mutt-brong' -> `/shared/brong/.mutt/mutt-brong'
`.mutt/mutt-hrs' -> `/shared/brong/.mutt/mutt-hrs'
`.mutt/mutt-colours' -> `/shared/brong/.mutt/mutt-colours'
`.mutt/hcache' -> `/shared/brong/.mutt/hcache'
Segmentation fault
brong at ravna:/extra/brong$

And here's the contents of dmesg.  NOTE ALSO - I had a vmware running
in the background.  I'm going to try this again without it just in case:

[ 2930.932000] WARNING: at /build/buildd/linux-source-2.6.22-2.6.22/include/linux/slub_def.h:77 kmalloc_index()
[ 2930.932000]  [<c017d403>] get_slab+0x1b3/0x230
[ 2930.932000]  [<f8a46a8e>] ieee80211_parse_info_param+0x42e/0x7e0 [ieee80211]
[ 2930.932000]  [<c017e86c>] __kmalloc_track_caller+0x1c/0xa0
[ 2930.932000]  [<c01691b5>] kmemdup+0x25/0x50
[ 2930.932000]  [<f8a46a8e>] ieee80211_parse_info_param+0x42e/0x7e0 [ieee80211]
[ 2930.932000]  [<c01a24f3>] ll_rw_block+0x23/0xc0
[ 2930.932000]  [<f8cde249>] search_by_key+0x169/0x10a0 [reiserfs]
[ 2930.932000]  [<c0264b8f>] dma_pool_alloc+0x18f/0x1f0
[ 2930.932000]  [<f8a46f84>] ieee80211_process_probe_response+0x144/0x6a0 [ieee80211]
[ 2930.932000]  [<f8a47592>] ieee80211_rx_mgt+0xb2/0x310 [ieee80211]
[ 2930.932000]  [<c01fd616>] __delay+0x6/0x10
[ 2930.932000]  [<f8990e13>] ata_bmdma_setup+0x53/0x70 [libata]
[ 2930.932000]  [<f8990cfb>] ata_bmdma_start+0xb/0x20 [libata]
[ 2930.932000]  [<f898c4e7>] ata_qc_issue_prot+0x187/0x290 [libata]
[ 2930.932000]  [<f89878de>] ata_qc_issue+0xae/0x4c0 [libata]
[ 2930.932000]  [<f8960620>] scsi_done+0x0/0x20 [scsi_mod]
[ 2930.932000]  [<f898d8fd>] ata_scsi_translate+0xad/0x1a0 [libata]
[ 2930.932000]  [<c0131717>] lock_timer_base+0x27/0x60
[ 2930.932000]  [<f898ff54>] ata_scsi_queuecmd+0xc4/0x1a0 [libata]
[ 2930.932000]  [<c01eb068>] elv_next_request+0x18/0x130
[ 2930.932000]  [<f8960d36>] scsi_dispatch_cmd+0x176/0x2b0 [scsi_mod]
[ 2930.932000]  [<c0131717>] lock_timer_base+0x27/0x60
[ 2930.932000]  [<f8966d99>] scsi_request_fn+0x249/0x360 [scsi_mod]
[ 2930.932000]  [<f8b3f196>] ipw_irq_tasklet+0x806/0x1c60 [ipw2200]
[ 2930.932000]  [<c01ee445>] __generic_unplug_device+0x25/0x30
[ 2930.932000]  [<c01eb281>] elv_insert+0x101/0x160
[ 2930.932000]  [<c013185f>] __mod_timer+0x9f/0xb0
[ 2930.932000]  [<c015ef95>] find_lock_page+0x25/0xc0
[ 2930.932000]  [<c01615cc>] find_or_create_page+0x1c/0x90
[ 2930.932000]  [<c015ef95>] find_lock_page+0x25/0xc0
[ 2930.932000]  [<c01615cc>] find_or_create_page+0x1c/0x90
[ 2930.932000]  [<c012dc04>] tasklet_action+0x54/0xc0
[ 2930.932000]  [<c012d6b2>] __do_softirq+0x82/0x110
[ 2930.932000]  [<c012d795>] do_softirq+0x55/0x60
[ 2930.932000]  [<c012da7d>] irq_exit+0x6d/0x80
[ 2930.932000]  [<c0106b20>] do_IRQ+0x40/0x70
[ 2930.932000]  [<c0105223>] common_interrupt+0x23/0x30
[ 2930.932000]  [<c01fab91>] radix_tree_gang_lookup+0x171/0x180
[ 2930.932000]  [<f8c8005c>] btrfs_lookup_block_group+0x5c/0xc0 [btrfs]
[ 2930.932000]  [<f8c801f1>] update_block_group+0x41/0x380 [btrfs]
[ 2930.932000]  [<f8c8229d>] del_pending_extents+0x3d/0x120 [btrfs]
[ 2930.932000]  [<f8c8266e>] btrfs_alloc_extent+0x2ee/0x460 [btrfs]
[ 2930.932000]  [<f8c8cf19>] btrfs_file_write+0x859/0x1190 [btrfs]
[ 2930.932000]  [<c015ec90>] file_read_actor+0x0/0xf0
[ 2930.932000]  [<c013bcc0>] autoremove_wake_function+0x0/0x50
[ 2930.932000]  [<c018113e>] vfs_write+0xbe/0x170
[ 2930.932000]  [<f8c8c6c0>] btrfs_file_write+0x0/0x1190 [btrfs]
[ 2930.932000]  [<c0181851>] sys_write+0x41/0x70
[ 2930.932000]  [<c01041d2>] sysenter_past_esp+0x6b/0xa9
[ 2930.932000]  =======================
[ 3022.972000] ------------[ cut here ]------------
[ 3022.972000] kernel BUG at /extra/src/work/btrfs/file.c:484!
[ 3022.972000] invalid opcode: 0000 [#1]
[ 3022.972000] SMP
[ 3022.972000] Modules linked in: snd_rtctimer vmnet(P) vmblock(P) vmmon(P) binfmt_misc tun rfcomm l2cap i915 drm ipv6 video sbs button dock battery container ac asus_acpi crc32c libcrc32c btrfs reiserfs fuse sbp2 lp snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm_oss snd_pcm snd_mixer_oss snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event joydev pcmcia snd_seq snd_timer snd_seq_device smsc_ircc2 irda crc_ccitt parport_pc parport ipw2200 pcspkr psmouse snd soundcore snd_page_alloc ieee80211 ieee80211_crypt serio_raw yenta_socket rsrc_nonstatic pcmcia_core iTCO_wdt iTCO_vendor_support hci_usb bluetooth shpchp af_packet pci_hotplug intel_agp agpgart evdev ext3 jbd mbcache sg sr_mod cdrom sd_mod ata_piix ata_generic libata scsi_mod e100 mii ohci1394 ieee1394 ehci_hcd uhci_hcd usbcore raid10 raid456 xor raid1 raid0 multipath linear md_mod dm_mirror dm_snapshot dm_mod thermal processor fan capability commoncap
[ 3022.972000] CPU:    0
[ 3022.972000] EIP:    0060:[<f8c8d76b>]    Tainted: P       VLI
[ 3022.972000] EFLAGS: 00210286   (2.6.22-6-generic #1)
[ 3022.972000] EIP is at btrfs_file_write+0x10ab/0x1190 [btrfs]
[ 3022.972000] eax: ffffffe4   ebx: c81dfe7c   ecx: e4664090   edx: 00000000
[ 3022.972000] esi: 00000040   edi: ee912900   ebp: 000077c0   esp: e0bdfe38
[ 3022.972000] ds: 007b   es: 007b   fs: 00d8  gs: 0033  ss: 0068
[ 3022.972000] Process cp (pid: 6030, ti=e0bde000 task=eb0ad480 task.ti=e0bde000)
[ 3022.972000] Stack: 0000f839 00000000 00000040 00000000 00008c34 00000000 ffffffff ffffffff
[ 3022.972000]        e0bdff44 00000001 c81dfeec bfc8a000 e6853a80 00040000 00000000 00000000
[ 3022.972000]        c81dfe7c ee912700 00000040 00000040 e2d49018 c81dfe7c e0bdfea8 c015ec90
[ 3022.972000] Call Trace:
[ 3022.972000]  [<c015ec90>] file_read_actor+0x0/0xf0
[ 3022.972000]  [<c013bcc0>] autoremove_wake_function+0x0/0x50
[ 3022.972000]  [<c018113e>] vfs_write+0xbe/0x170
[ 3022.972000]  [<f8c8c6c0>] btrfs_file_write+0x0/0x1190 [btrfs]
[ 3022.972000]  [<c0181851>] sys_write+0x41/0x70
[ 3022.972000]  [<c01041d2>] sysenter_past_esp+0x6b/0xa9
[ 3022.972000]  =======================
[ 3022.972000] Code: c7 8b 44 24 44 e8 96 7e ff ff e8 11 1d 66 c7 8b 94 24 08 01 00 00 85 d2 0f 84 cf f9 ff ff 8b 5c 24 34 01 5c 24 2c e9 15 f2 ff ff <0f> 0b eb fe 7c 0e 81 7c 24 7c ff 0f 00 00 0f 87 32 f7 ff ff 8b
[ 3022.972000] EIP: [<f8c8d76b>] btrfs_file_write+0x10ab/0x1190 [btrfs] SS:ESP 0068:e0bdfe38



Exciting hey.

Bron.
-- 
  Bron Gondwana
  brong at fastmail.fm




More information about the Btrfs-devel mailing list