LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-25-2016, 11:06 PM   #1
rdahal
LQ Newbie
 
Registered: Jan 2016
Posts: 10

Rep: Reputation: Disabled
Comparison between fsck time and inode count in ext4


I need to compare the fsck time taken with respect to the inode count in ext4 and ext3 file systems.
How can I collect data, fsck time taken with respect to the inode count. With this data a comparative study of the file system will be made.

Thanks in advance.


rdahal
 
Old 02-26-2016, 02:24 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
Hi there,

Could you please elaborate on what you are trying to do? What do you want to compare? I doubt that the time it takes to run fsck on a filesystem is particularly useful as a comparison, as it will depend on a lot more than just the inode count. Factors like filesystem size, block count, etc, also play a significant role.

If you want to do this anyway, try something this:

Code:
time fsck /dev/sdXN
Obviously you need to specify the correct device ;-) The output from "fsck" will show the inode count, and the "time" command will tell you how long it took to run.

Sample output:

Code:
$ sudo time fsck /dev/sda2 
fsck from util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
/dev/sda2: clean, 13/6111232 files, 431595/24414062 blocks

0.02user 0.00system 0:00.04elapsed 76%CPU (0avgtext+0avgdata 3776maxresident)k
2536inputs+16outputs (0major+595minor)pagefaults 0swaps
The "13/6111232 files" shows the number of inodes used and total, while the "0:00.04elapsed" part is the elapsed time it took to run.

Regards,

Clifford
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inode count linuxmantra Linux - Newbie 1 10-23-2014 06:22 PM
ext4 won't mount - fsck required - 2nd fsck in less than a week td3201 Linux - General 1 09-10-2012 12:07 AM
inode count hybernate20 Linux - General 1 03-17-2009 05:46 PM
Increase max inode count xPhoenix Slackware 2 10-05-2006 02:14 AM
Cant reboot. Inode, fsck? fedoraguy Linux - Newbie 1 08-13-2004 03:20 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 12:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration