You are not logged in.

#1 2013-09-16 23:53:25

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

Why arch always access ext4 every second?

I've read one related topic https://bbs.archlinux.org/viewtopic.php?id=113516.

$ pacman -Q linux 
linux 3.10.10-1
$ mount -o defaults,noatime,commit=60 /dev/sdb2 /mnt/home
# it access my disk every second
$ mount | grep sdb2
/dev/sdb2 on /mnt/home type ext4 (rw,noatime,commit=60,data=ordered)

Any tip to debug it?


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

#2 2013-09-17 00:27:21

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: Why arch always access ext4 every second?

Have you looked in the journal to see what might be accessing the disk? Or you can watch the processes with one of the various monitoring tools.

I would also check the disk with smartmontools - not just the overall health check, but look at the attributes and the error log, and run the tests available.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-09-17 01:29:14

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

Re: Why arch always access ext4 every second?

I forgot to mention what's on my /dev/sdb.

1. It is an old IDE 250GB disk connected through a IDE2USB device to my Arch Linux x86_64.
2. There are many partition on /dev/sdb, including FAT/ext3,.. the other partitions were mounted well.
3. /dev/sdb2 is just created as an empty ext4 partition by gparted.

>  Have you looked in the journal to see what might be accessing the disk?

Could you explain what's the proper command?


>  Or you can watch the processes with one of the various monitoring tools.

I don't understand what's proper tools.

> I would also check the disk with smartmontools - not just the overall health check, but look at the attributes and the error log, and run the tests available.

I'll try this when I back home.


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

#4 2013-09-17 01:39:40

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: Why arch always access ext4 every second?

If it has just been created, the link you posted may contain the answer i.e. it might still be creating the inodes.

For the journal, use journalctl. man journalctl for options to parse it with.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-09-17 02:08:32

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

Re: Why arch always access ext4 every second?

> f it has just been created, the link you posted may contain the answer i.e. it might still be creating the inodes.

Thanks, I just notice it

man mkfs.ext4
# default enabled lazy_itable_init and lazy_journal_init.
# and related mount option: uninit_bg

But how to know all the inode have already created?

Here I list my another PC's ext4 partition information.

$ smartctl --all /dev/sda

smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.10-1-ARCH] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     HITACHI HDS7225SCSUN250G 0710B99GZK
Serial Number:    VFA140R1D99GZK
LU WWN Device Id: 5 000cca 210d25271
Firmware Version: V5DOA7BA
User Capacity:    250,056,000,000 bytes [250 GB]
Sector Size:      512 bytes logical/physical
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA/ATAPI-7 T13/1532D revision 1
Local Time is:    Tue Sep 17 10:03:25 2013 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x84)	Offline data collection activity
					was suspended by an interrupting command from host.
					Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		( 4949) seconds.
Offline data collection
capabilities: 			 (0x5b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					No Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 (  83) minutes.
SCT capabilities: 	       (0x003f)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   161   161   050    Pre-fail  Offline      -       195
  3 Spin_Up_Time            0x0007   135   135   024    Pre-fail  Always       -       260 (Average 292)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       73
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   134   134   020    Pre-fail  Offline      -       32
  9 Power_On_Hours          0x0012   096   096   000    Old_age   Always       -       32356
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       73
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       208
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       208
194 Temperature_Celsius     0x0002   181   181   000    Old_age   Always       -       33 (Min/Max 17/54)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]


SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

$ tune2fs -l /dev/sda2

tune2fs 1.42.8 (20-Jun-2013)
Filesystem volume name:   arch64
Last mounted on:          /
Filesystem UUID:         xxx(omit)
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              15138816
Block count:              60548805
Reserved block count:     3027440
Free blocks:              8208333
Free inodes:              12058767
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1009
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Thu Jan  5 17:01:16 2012
Last mount time:          Mon Sep  2 08:58:15 2013
Last write time:          Mon Sep  2 08:58:15 2013
Mount count:              12
Maximum mount count:      34
Last checked:             Fri Jul 12 11:00:12 2013
Check interval:           15552000 (6 months)
Next check after:         Wed Jan  8 11:00:12 2014
Lifetime writes:          1724 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
First orphan inode:       13159924
Default directory hash:   half_md4
Directory Hash Seed:      5deea733-f866-4478-add5-a98235057da4
Journal backup:           inode blocks

Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

#6 2013-09-17 21:15:33

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: Why arch always access ext4 every second?

Why list information for another PC? I'm really confused. Does this have some meaning I'm not familiar with?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2013-09-18 00:02:38

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

Re: Why arch always access ext4 every second?

On the old IDE disk

$ smartctl --all /dev/sdb

smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.11.1-1-ARCH] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Caviar SE
Device Model:     WDC WD2500JB-00REA0
Serial Number:    WD-WCANK3939072
Firmware Version: 20.00K20
User Capacity:    250,058,268,160 bytes [250 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA/ATAPI-7 (minor revision not indicated)
Local Time is:    Wed Sep 18 07:57:41 2013 CST
SMART support is: Available - device has SMART capability.
SMART support is: Disabled

SMART Disabled. Use option -s with argument 'on' to enable it.
(override with '-T permissive' option)

$ tune2fs -l /dev/sdb2

tune2fs 1.42.8 (20-Jun-2013)
Filesystem volume name:   home
Last mounted on:          <not available>
Filesystem UUID:          be0f1031-2a1f-4e16-b66f-1e54f22ae0e2
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              14622720
Block count:              58480896
Reserved block count:     2924044
Free blocks:              57515257
Free inodes:              14622709
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1010
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Tue Sep  3 07:34:13 2013
Last mount time:          Tue Sep 17 07:52:37 2013
Last write time:          Tue Sep 17 08:10:30 2013
Mount count:              11
Maximum mount count:      -1
Last checked:             Tue Sep  3 07:34:13 2013
Check interval:           0 (<none>)
Lifetime writes:          3454 MB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      1fc83683-1a71-40cd-ae28-5694a8588708
Journal backup:           inode blocks

Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

#8 2013-09-18 00:06:50

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: Why arch always access ext4 every second?

So did you try enabling it?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB