Home » UNIX » Linux » btrfs-cleaner leaves CPU pinned to 100%

btrfs-cleaner leaves CPU pinned to 100%

Pages

September 2014
M T W T F S S
« Jun   Oct »
1234567
891011121314
15161718192021
22232425262728
2930  

RSS Link

  • An error has occurred; the feed is probably down. Try again later.

Twitter Updates

Blog Stats

  • 345,582 hits

Archives

Pengunjung


Tiga hari ini gw mengalami problem. Tiba-tiba notebook menjadi lambat, di tengah-tengah kerja. Pas gw check nmon, ternyata ada proses yang memakan hampir 100% CPU, yaitu btrfs-cleaner.

Pas gw cari-cari di internet, ketemu bahwa btrfs-cleaner seringkali terjadi apabila kita mengaktifkan autodefrag pada file system btrfs (Gw aktifin sih…pada saat booting :D)

Settingan /etc/fstab :

# /etc/fstab: static file system information.
#
# Use ‘blkid’ to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=20a3dd42-fbf7-486b-8db2-0f77c1c58b5c /               ext3    errors=remount-ro 0       1
# /home was on /dev/sda6 during installation
UUID=3d9724c3-3157-43dd-b7de-db73b4212f6e /home           ext3    defaults        0       2
# swap was on /dev/sda5 during installation
#UUID=d633756f-cbbf-4963-b09a-c1d599743f4f none            swap    sw              0       0
UUID=9858bb28-275f-458f-83f8-869b22b33aa8 /backup         btrfs  noatime,nodiratime,autodefrag,noacl,compress-force=lzo         0       0
UUID=03d8854b-a9bb-4dc9-b994-e993aace5ae0 /data           btrfs  noatime,nodiratime,autodefrag,noacl,compress-force=zlib         0       0

Solusinya adalah menonaktifkan autodefrag di /etc/fstab. Opsi auto defrag tidak disarankan apabila filesystem termasuk high I/O😦

File /etc/fstab setelah dinonaktifkan autodefrag-nya :

# /etc/fstab: static file system information.
#
# Use ‘blkid’ to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=20a3dd42-fbf7-486b-8db2-0f77c1c58b5c /               ext3    errors=remount-ro 0       1
# /home was on /dev/sda6 during installation
UUID=3d9724c3-3157-43dd-b7de-db73b4212f6e /home           ext3    defaults        0       2
# swap was on /dev/sda5 during installation
#UUID=d633756f-cbbf-4963-b09a-c1d599743f4f none            swap    sw              0       0
UUID=9858bb28-275f-458f-83f8-869b22b33aa8 /backup         btrfs  noatime,nodiratime,noacl,compress-force=lzo         0       0
UUID=03d8854b-a9bb-4dc9-b994-e993aace5ae0 /data           btrfs  noatime,nodiratime,noacl,compress-force=zlib         0       0

 


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: