[root@inode ~]# sysctl -w vm.block_dump=1 vm.block_dump = 1 [root@inode ~]# while true; do sleep 10; date; dmesg -c | grep redhat.com && md5sum /var/yp/binding/redhat.com.*; done Tue Jul 8 22:40:21 CDT 2008 Tue Jul 8 22:40:31 CDT 2008 ypbind(3241): dirtied inode 33391 (redhat.com.1) on sda11 ypbind(3241): dirtied inode 37462 (redhat.com.2) on sda11 f6749c7ad64c1e06d86e091514bb3ad5 /var/yp/binding/redhat.com.1 f6749c7ad64c1e06d86e091514bb3ad5 /var/yp/binding/redhat.com.2 Tue Jul 8 22:40:41 CDT 2008 Tue Jul 8 22:40:51 CDT 2008 Tue Jul 8 22:41:01 CDT 2008 Tue Jul 8 22:41:11 CDT 2008 Tue Jul 8 22:41:21 CDT 2008 Tue Jul 8 22:41:31 CDT 2008 ypbind(3241): dirtied inode 33391 (redhat.com.1) on sda11 ypbind(3241): dirtied inode 37462 (redhat.com.2) on sda11 f6749c7ad64c1e06d86e091514bb3ad5 /var/yp/binding/redhat.com.1 f6749c7ad64c1e06d86e091514bb3ad5 /var/yp/binding/redhat.com.2 Tue Jul 8 22:41:41 CDT 2008 Tue Jul 8 22:41:51 CDT 2008 Tue Jul 8 22:42:01 CDT 2008 Tue Jul 8 22:42:11 CDT 2008 Tue Jul 8 22:42:21 CDT 2008 Tue Jul 8 22:42:31 CDT 2008 ypbind(3241): dirtied inode 33391 (redhat.com.1) on sda11 ypbind(3241): dirtied inode 37462 (redhat.com.2) on sda11 f6749c7ad64c1e06d86e091514bb3ad5 /var/yp/binding/redhat.com.1 f6749c7ad64c1e06d86e091514bb3ad5 /var/yp/binding/redhat.com.2 .... this uses extra power and stops disks from spinning down. Can the files be rewritten only if changed? Thanks, -Eric
Created attachment 314759 [details] Proposed patch Without knowing much about ypbind, here's a potential patch. It just keeps track of the last domain info that was written, and if it's unchanged since last time, it skips the writeout.
Created attachment 320097 [details] Fixed/updated patch The original patch was a bit hacky; Thorsten turned it into this, which he said he has upstream already. Thanks, -Eric