37

Is there any way to 'force' ext4lazyinit to finish the thing it does with maximum priority? Something like "I don't care about my system's ressources, just do your job as fast as you can"?

I should add: Without reformatting the drive. I am aware of mkfs's lazy_itable_init option.

Jens Erat
  • 18,485
  • 14
  • 68
  • 80
Marius
  • 473

2 Answers2

35

In order to 'force' ext4lazyinit to finish the thing it does with maximum priority, you need to mount the filesystem with 'init_itable=0'. By default it is 10 (for detail please see link below)

Alternative solution is to disable the ext4lazyinit thread by mount option 'noinit_itable' which may however not be a good idea on production system (for detail please see link below).

Source with detailed info here ext4lazyinit git commit comment.

-2

You can set the 'nice' level of the process to a higher priority over others. Not sure if it will make it go any faster though and could adversely affect system stability if set too high (-20 is the highest priority).

nice -n [nice value] [command]
Hefewe1zen
  • 1,862