scalability investigation: Where can I get your latest patches?
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 20100720031201.GC21274@amd
Quoted 16 lines · Nick Piggin
Quoted 4 lines · Yanmin
Nick,
I work with Andi Kleen and Tim to investigate some scalability issues.
Quoted 8 lines
Andi gave me a pointer at:
http://thread.gmane.org/gmane.linux.kernel/1002380/focus=42284Where can I get your latest patches? It's better if I could get patch tarball.
Thanks,
YanminHi Yanmin,
Quoted 7 lines
Sorry for the delay. I have a git tree now, and it has been through some tress testing.
http://git.kernel.org/?p=linux/kernel/git/npiggin/linux-npiggin.git
I would be very interested to know if you encounter problems or are able to generate any benchmark numbers.
Nick,
We ran lots of benchmarks on many machines. Below is something to share with you.
Improvement:
1) We get about 30% improvement with kbuild workload on Nehalem machines. It's hard to improve kbuild performance. Your tree does.
Issues:
1) Compiling fails on a couple of file systems, such like CONFIG_ISO9660_FS=y.
2) dbenchthreads has about 50% regression. We connect a JBOD of 12 disks to a machine. Start 4 dbench threads per disk.
We run the workload under a regular user account. If we run it under root account, we get 22% improvement instead of regression.
The root cause is ACL checking. With your patch, do_path_lookup firstly goes through rcu steps which including a exec permission checking. With ACL, the __exec_permission always fails. Then a later nameidata_drop_rcu often fails as dentry->d_seq is changed.
With root account, it doesn't happen. We mount the working devices under /mnt/stp/XXX. /mnt is of root user. So the exec permission check is ok.
I remount all file systems on the testing path with noacl option, and get the similar results like under root account.
3) aim7 has about 40% regression on Nehalem EX 4-socket machine. The root cause is the same thing like 2).
Other benchmarks' results have no improvement or regression.
Yanmin
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 6 lines
Issues:
1) Compiling fails on a couple of file systems, such likeCONFIG_ISO9660_FS=y.
2) dbenchthreads has about 50% regression. We connect a JBOD of 12 disks to
a machine. Start 4 dbench threads per disk.
Quoted 9 lines
We run the workload under a regular user account. If we run it under root account,
we get 22% improvement instead of regression.
The root cause is ACL checking. With your patch,do_path_lookupfirstly goes through
rcu steps which including a exec permission checking. With ACL, the__exec_permission
always fails. Then a laternameidata_drop_rcuoften fails as dentry-Quoted 1 line
d_seqis changed.
I believe the latest version of Nick's patchkit has a likely fix for that.
-Andi
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 14 lines · Andi
Quoted 14 lines
Issues:
1) Compiling fails on a couple of file systems, such likeCONFIG_ISO9660_FS=y.
2) dbenchthreads has about 50% regression. We connect a JBOD of 12 disks to
a machine. Start 4 dbench threads per disk.
We run the workload under a regular user account. If we run it under root account,
we get 22% improvement instead of regression.
The root cause is ACL checking. With your patch,do_path_lookupfirstly goes through
rcu steps which including a exec permission checking. With ACL, the__exec_permission
always fails. Then a laternameidata_drop_rcuoften fails as dentry-
Quoted 5 lines
Quoted 1 line
Quoted 1 line
d_seqis changed.I believe the latest version of Nick's patchkit has a likely fix for that.
Thanks Andi. The patch has no ext3 part.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 7 lines
Quoted 1 line
I believe the latest version of Nick's patchkit has a likely fix for
that.
Quoted 2 lines
npiggin.git;a=commitdiff;h=9edd35f9aeafc8a5e1688b84cf4488a94898ca45
Thanks Andi. The patch has no ext3 part.
Good point. But perhaps the ext2 patch can be adapted. The ACL code should be similar in ext2 and ext3 (and 4)
-Andi
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 10 lines · Andi
Quoted 7 lines
Quoted 1 line
I believe the latest version of Nick's patchkit has a likely fix for
that.
Quoted 2 lines
npiggin.git;a=commitdiff;h=9edd35f9aeafc8a5e1688b84cf4488a94898ca45
Thanks Andi. The patch has no ext3 part.
Good point. But perhaps the ext2 patch can be adapted. The ACL code should be similar in ext2 and ext3 (and 4)
I ported ext2 part to ext3. aim7 testing on Nehalem EX 4 socket machine shows the regression disappears.
---
fs/ext3/acl.c +13 -5
@@ -240,13 +240,21 @@ ext3_set_acl(handle_t *handle, struct in }int -ext3_check_acl (struct inode *inode,int mask) +ext3_check_acl_rcu (struct inode *inode,int mask,unsigned int flags) { -struct posix_acl *acl =ext3_get_acl (inode,ACL_TYPE_ACCESS ); +struct posix_acl *acl; -if (IS_ERR (acl)) -return PTR_ERR (acl); -if (acl) { +if (flags &IPERM_FLAG_RCU ) { +if (!negative_cached_acl (inode,ACL_TYPE_ACCESS )) +return -ECHILD ; +return -EAGAIN ; + } + + acl =ext3_get_acl (inode,ACL_TYPE_ACCESS ); +if (IS_ERR (acl)) +return PTR_ERR (acl); + +if (acl) {int error =posix_acl_permission (inode, acl, mask);posix_acl_release (acl);return error;
fs/ext3/acl.h +1 -1
@@ -54,7 +54,7 @@ static inline int ext3_acl_count(size_t#ifdef CONFIG_EXT3_FS_POSIX_ACL /* acl.c */ -extern int ext3_check_acl (struct inode *,int ); +extern int ext3_check_acl_rcu (struct inode *inode,int mask,unsigned int flags);extern int ext3_acl_chmod (struct inode *);extern int ext3_init_acl (handle_t *,struct inode *,struct inode *);
fs/ext3/file.c +1 -1
@@ -79,7 +79,7 @@ const struct inode_operations ext3_file_ .listxattr = ext3_listxattr, .removexattr = generic_removexattr, #endif - .check_acl = ext3_check_acl, + .check_acl_rcu = ext3_check_acl_rcu, .fiemap = ext3_fiemap, };
fs/ext3/namei.c +2 -2
@@ -2465,7 +2465,7 @@ const struct inode_operations ext3_dir_i .listxattr = ext3_listxattr, .removexattr = generic_removexattr, #endif - .check_acl = ext3_check_acl, + .check_acl_rcu = ext3_check_acl_rcu, }; const struct inode_operations ext3_special_inode_operations = {
@@ -2476,5 +2476,5 @@ const struct inode_operations ext3_speci .listxattr = ext3_listxattr, .removexattr = generic_removexattr, #endif - .check_acl = ext3_check_acl, + .check_acl_rcu = ext3_check_acl_rcu, };
Quoted 5 lines · Yanmin
Quoted 4 lines · Andi
Quoted 4 lines
Quoted 1 line
I believe the latest version of Nick's patchkit has a likely fix for
that.
Quoted 2 lines
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
npiggin.git;a=commitdiff;h=9edd35f9aeafc8a5e1688b84cf4488a94898ca45
Thanks Andi. The patch has no ext3 part.
Good point. But perhaps the ext2 patch can be adapted. The ACL code should be similar in ext2 and ext3 (and 4)
I ported ext2 part to ext3. aim7 testing on Nehalem EX 4 socket machine shows the regression disappears.
Thanks, this looks fine I'll port several more of the popular filesystems over asap.
Quoted 20 lines · Yanmin
Quoted 19 lines · Nick Piggin
Quoted 4 lines · Yanmin
Nick,
I work with Andi Kleen and Tim to investigate some scalability issues.
Quoted 8 lines
Andi gave me a pointer at:
http://thread.gmane.org/gmane.linux.kernel/1002380/focus=42284Where can I get your latest patches? It's better if I could get patch tarball.
Thanks,
YanminHi Yanmin,
Sorry for the delay. I have a git tree now, and it has been through some tress testing.
Quoted 8 lines
Quoted 4 lines
http://git.kernel.org/?p=linux/kernel/git/npiggin/linux-npiggin.git
I would be very interested to know if you encounter problems or are able to generate any benchmark numbers.
Nick,
We ran lots of benchmarks on many machines. Below is something to share with you.
Great, thanks for doing this!
Quoted 3 lines
Improvement:
1) We get about 30% improvement with kbuild workload on Nehalem machines. It's hard to improve kbuild performance. Your tree does.
Well that's nice. What size of machine is this? Did you run it on an ACL enabled filesystem?
Quoted 2 lines
Issues:
1) Compiling fails on a couple of file systems, such likeCONFIG_ISO9660_FS=y.
Yes there are a couple that broke, which I still need to fix up.
Quoted 9 lines
2) dbenchthreads has about 50% regression. We connect a JBOD of 12 disks to a machine. Start 4 dbench threads per disk. We run the workload under a regular user account. If we run it under root account, we get 22% improvement instead of regression. The root cause is ACL checking. With your patch,
do_path_lookupfirstly goes through rcu steps which including a exec permission checking. With ACL, the__exec_permissionalways fails. Then a laternameidata_drop_rcuoften fails asdentry->d_seqis changed.
Quoted 3 lines
With root account, it doesn't happen. We mount the working devices under
/mnt/stp/XXX. /mnt is of root user. So the exec permission check is ok.
Yes if running with root, this should have the same effect as the rcu-walk aware ACL patch. BTW. dbench has a nasty call to statvfs() which is a huge cost (which should be fixed in future versions of kernel+glibc). You can try switching the statvfs(2) call in fileio.c to statfs(2) and see if performance improves.
Are you disk bound or CPU bound at this point?
Quoted 5 lines
I remount all file systems on the testing path with noacl option, and get the similar results like under root account.
3) aim7 has about 40% regression on Nehalem EX 4-socket machine. The root cause is the same thing like 2).
Thanks for subsequently porting and testing the ACL patch. I saw some performance gains on reaim on 2 socket 8 core machine, although it would depend on the workfile used.
Thanks,
Nick
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 30 lines · Nick Piggin
Quoted 20 lines · Yanmin
Quoted 19 lines · Nick Piggin
Quoted 4 lines · Yanmin
Nick,
I work with Andi Kleen and Tim to investigate some scalability issues.
Quoted 8 lines
Andi gave me a pointer at:
http://thread.gmane.org/gmane.linux.kernel/1002380/focus=42284Where can I get your latest patches? It's better if I could get patch tarball.
Thanks,
YanminHi Yanmin,
Sorry for the delay. I have a git tree now, and it has been through some tress testing.
Quoted 8 lines
Quoted 4 lines
http://git.kernel.org/?p=linux/kernel/git/npiggin/linux-npiggin.git
I would be very interested to know if you encounter problems or are able to generate any benchmark numbers.
Nick,
We ran lots of benchmarks on many machines. Below is something to share with you.
Quoted 8 lines
Great, thanks for doing this!
Quoted 3 lines
Improvement:
1) We get about 30% improvement with kbuild workload on Nehalem machines. It's hard to improve kbuild performance. Your tree does.Well that's nice. What size of machine is this?
It's a dual-socket Nehalem machine with 2*4*2 logical cpus and 6GB memory.
Quoted 2 lines
Did you run it on an
ACL enabled filesystem?
Yes. The root filesystem is ext3 ACL.
Quoted 21 lines
Quoted 4 lines
Issues:
1) Compiling fails on a couple of file systems, such likeCONFIG_ISO9660_FS=y.Yes there are a couple that broke, which I still need to fix up.
Quoted 9 lines
2) dbenchthreads has about 50% regression. We connect a JBOD of 12 disks to a machine. Start 4 dbench threads per disk. We run the workload under a regular user account. If we run it under root account, we get 22% improvement instead of regression. The root cause is ACL checking. With your patch,
do_path_lookupfirstly goes through rcu steps which including a exec permission checking. With ACL, the__exec_permissionalways fails. Then a laternameidata_drop_rcuoften fails asdentry->d_seqis changed.Quoted 3 lines
With root account, it doesn't happen. We mount the working devices under
/mnt/stp/XXX. /mnt is of root user. So the exec permission check is ok.
Quoted 7 lines
Yes if running with root, this should have the same effect as the rcu-walk aware ACL patch. BTW. dbench has a nasty call to
statvfs()which is a huge cost (which should be fixed in future versions of kernel+glibc). You can try switching the statvfs(2) call infileio.cto statfs(2) and see if performance improves.Are you disk bound or CPU bound at this point?
CPU bound.
Quoted 10 lines
Quoted 6 lines
I remount all file systems on the testing path with noacl option, and get the similar results like under root account.
3) aim7 has about 40% regression on Nehalem EX 4-socket machine. The root cause is the same thing like 2).
Thanks for subsequently porting and testing the ACL patch. I saw some performance gains on reaim on 2 socket 8 core machine, although it would depend on the workfile used.
I don't find your patch has much impact on aim7 workload on dual-socket machine, but do on 4-socket and 8-socket Nehalem EX machines.
Quoted 60 lines · Nick Piggin
Quoted 20 lines · Yanmin
Quoted 19 lines · Nick Piggin
Quoted 4 lines · Yanmin
Nick,
I work with Andi Kleen and Tim to investigate some scalability issues.
Quoted 8 lines
Andi gave me a pointer at:
http://thread.gmane.org/gmane.linux.kernel/1002380/focus=42284Where can I get your latest patches? It's better if I could get patch tarball.
Thanks,
YanminHi Yanmin,
Sorry for the delay. I have a git tree now, and it has been through some tress testing.
Quoted 8 lines
Quoted 4 lines
http://git.kernel.org/?p=linux/kernel/git/npiggin/linux-npiggin.git
I would be very interested to know if you encounter problems or are able to generate any benchmark numbers.
Nick,
We ran lots of benchmarks on many machines. Below is something to share with you.
Great, thanks for doing this!
Quoted 3 lines
Improvement:
1) We get about 30% improvement with kbuild workload on Nehalem machines. It's hard to improve kbuild performance. Your tree does.Well that's nice. What size of machine is this? Did you run it on an ACL enabled filesystem?
Quoted 2 lines
Issues:
1) Compiling fails on a couple of file systems, such likeCONFIG_ISO9660_FS=y.Yes there are a couple that broke, which I still need to fix up.
Quoted 9 lines
2) dbenchthreads has about 50% regression. We connect a JBOD of 12 disks to a machine. Start 4 dbench threads per disk. We run the workload under a regular user account. If we run it under root account, we get 22% improvement instead of regression. The root cause is ACL checking. With your patch,
do_path_lookupfirstly goes through rcu steps which including a exec permission checking. With ACL, the__exec_permissionalways fails. Then a laternameidata_drop_rcuoften fails asdentry->d_seqis changed.Quoted 3 lines
With root account, it doesn't happen. We mount the working devices under
/mnt/stp/XXX. /mnt is of root user. So the exec permission check is ok.
Quoted 7 lines
Yes if running with root, this should have the same effect as the rcu-walk aware ACL patch.
BTW. dbench has a nasty call to
statvfs()
which is a huge cost (which should be fixed in future versions of kernel+glibc). You can try switching the statvfs(2) call infileio.cto statfs(2) and see if performance improves.
I change the statvfs call to statfs, and get 40% improvement with your patch. pure 2.6.35-rc5 also gets 40% improvement.
Quoted 7 lines · Yanmin
We ran lots of benchmarks on many machines. Below is something to share with you.
Improvement:
1) We get about 30% improvement with kbuild workload on Nehalem machines. It's hard to improve kbuild performance. Your tree does.
Quoted 10 lines
Issues:
1) Compiling fails on a couple of file systems, such likeCONFIG_ISO9660_FS=y.
2) dbenchthreads has about 50% regression. We connect a JBOD of 12 disks to a machine. Start 4 dbench threads per disk. We run the workload under a regular user account. If we run it under root account, we get 22% improvement instead of regression. The root cause is ACL checking. With your patch,do_path_lookupfirstly goes through rcu steps which including a exec permission checking. With ACL, the__exec_permissionalways fails. Then a laternameidata_drop_rcuoften fails asdentry->d_seqis changed.
Oh one other thing I wanted to ask about. d_seq changing should not be too common. If the directory is renamed, or if it is turned negative should be the only cases in which we should see a d_seq changes.
Or unless there is a bug and it is checking the wrong sequence or against the wrong dentry. How often would you say nameidata_drop_rcu fails (without the following acl rcu patches)?
Quoted 19 lines · Nick Piggin
Quoted 7 lines · Yanmin
We ran lots of benchmarks on many machines. Below is something to share with you.
Improvement:
1) We get about 30% improvement with kbuild workload on Nehalem machines. It's hard to improve kbuild performance. Your tree does.Quoted 10 lines
Issues:
1) Compiling fails on a couple of file systems, such likeCONFIG_ISO9660_FS=y.
2) dbenchthreads has about 50% regression. We connect a JBOD of 12 disks to a machine. Start 4 dbench threads per disk. We run the workload under a regular user account. If we run it under root account, we get 22% improvement instead of regression. The root cause is ACL checking. With your patch,do_path_lookupfirstly goes through rcu steps which including a exec permission checking. With ACL, the__exec_permissionalways fails. Then a laternameidata_drop_rcuoften fails asdentry->d_seqis changed.
Quoted 6 lines
Oh one other thing I wanted to ask about.
d_seqchanging should not be too common. If the directory is renamed, or if it is turned negative should be the only cases in which we should see ad_seqchanges.Or unless there is a bug and it is checking the wrong sequence or against the wrong dentry.
Sorry for misleading you. It fails at the beginning in nameidata_drop_rcu because (nd->flags & LOOKUP_FIRST) is true.
Quoted 2 lines
How often would you say
nameidata_drop_rcu
fails (without the following acl rcu patches)?
I instrument kernel and find nameidata_drop_rcu always fails.