Re: [zfs-discuss] webserver zfs root lock contention under heavy load

2012-03-26 Thread Aubrey Li
On Mon, Mar 26, 2012 at 4:33 PM, casper@oracle.com wrote: I'm migrating a webserver(apache+php) from RHEL to solaris. During the stress testing comparison, I found under the same session number of client request, CPU% is ~70% on RHEL while CPU% is full on solaris. Which version of Solaris

Re: [zfs-discuss] volblocksize for VMware VMFS-5

2012-03-26 Thread Jim Klimov
2012-03-26 7:58, Yuri Vorobyev wrote: Hello. What the best practices for choosing ZFS volume volblocksize setting for VMware VMFS-5? VMFS-5 block size is 1Mb. Not sure how it corresponds with ZFS. Setup details follow: - 11 pairs of mirrors; - 600Gb 15k SAS disks; - SSDs for L2ARC and ZIL -

Re: [zfs-discuss] webserver zfs root lock contention under heavy load

2012-03-26 Thread Jim Klimov
2012-03-26 14:27, Aubrey Li wrote: The php temporary folder is set to /tmp, which is tmpfs. By the way, how much RAM does the box have available? tmpfs in Solaris is backed by virtual memory. It is like a RAM disk, although maybe slower than ramdisk FS as seen in livecd, as long as there is

Re: [zfs-discuss] webserver zfs root lock contention under heavy load

2012-03-26 Thread Jim Mauro
You care about #2 and #3 because you are fixated on a ZFS root lock contention problem, and not open to a broader discussion about what your real problem actually is. I am not saying there is not lock contention, and I am not saying there is - I'll look at the data later carefully later when I

Re: [zfs-discuss] webserver zfs root lock contention under heavy load

2012-03-26 Thread Aubrey Li
On Mon, Mar 26, 2012 at 7:28 PM, Jim Klimov jimkli...@cos.ru wrote: 2012-03-26 14:27, Aubrey Li wrote: The php temporary folder is set to /tmp, which is tmpfs. By the way, how much RAM does the box have available? tmpfs in Solaris is backed by virtual memory. It is like a RAM disk,

Re: [zfs-discuss] webserver zfs root lock contention under heavy load

2012-03-26 Thread Aubrey Li
On Mon, Mar 26, 2012 at 8:24 PM, Jim Mauro james.ma...@oracle.com wrote: You care about #2 and #3 because you are fixated on a ZFS root lock contention problem, and not open to a broader discussion about what your real problem actually is. I am not saying there is not lock contention, and I

Re: [zfs-discuss] webserver zfs root lock contention under heavy load

2012-03-26 Thread Richard Elling
I see nothing unusual in the lockstat data. I think you're barking up the wrong tree. -- richard On Mar 25, 2012, at 10:51 PM, Aubrey Li wrote: On Mon, Mar 26, 2012 at 1:19 PM, Richard Elling richard.ell...@richardelling.com wrote: Apologies to the ZFSers, this thread really belongs

Re: [zfs-discuss] Good tower server for around 1,250 USD?

2012-03-26 Thread John D Groenveld
In message alpine.gso.2.01.1203221338170.23...@freddy.simplesystems.org, Bob Friesenhahn writes: Almost all of the systems listed on the HCL are defunct and no longer purchasable except for on the used market. Obtaining an approved system seems very difficult. In spite of this, Solaris runs

Re: [zfs-discuss] webserver zfs root lock contention under heavy load

2012-03-26 Thread Jim Klimov
As a random guess, try pointing PHP tmp directory to /var/tmp (backed by zfs) and see if any behaviors change? Good luck, //Jim Thanks for your suggestions. Actually the default PHP tmp directory was /var/tmp, and I changed /var/tmp to /tmp. This reduced zfs root lock contention

Re: [zfs-discuss] volblocksize for VMware VMFS-5

2012-03-26 Thread Richard Elling
On Mar 25, 2012, at 8:58 PM, Yuri Vorobyev wrote: Hello. What the best practices for choosing ZFS volume volblocksize setting for VMware VMFS-5? VMFS-5 block size is 1Mb. Not sure how it corresponds with ZFS. Zero correlation. What I see on the wire from VMFS is 16KB random reads

[zfs-discuss] test for holes in a file?

2012-03-26 Thread ольга крыжановская
How can I test if a file on ZFS has holes, i.e. is a sparse file, using the C api? Olga --       ,   _                                    _   ,      { \/`o;-    Olga Kryzhanovska   -;o`\/ } .'-/`-/     olga.kryzhanov...@gmail.com   \-`\-'.  `'-..-| /      

Re: [zfs-discuss] test for holes in a file?

2012-03-26 Thread Mike Gerdts
2012/3/26 ольга крыжановская olga.kryzhanov...@gmail.com: How can I test if a file on ZFS has holes, i.e. is a sparse file, using the C api? See SEEK_HOLE in lseek(2). -- Mike Gerdts http://mgerdts.blogspot.com/ ___ zfs-discuss mailing list

Re: [zfs-discuss] test for holes in a file?

2012-03-26 Thread ольга крыжановская
Mike, I was hoping that some one has a complete example for a bool has_file_one_or_more_holes(const char *path) function. Olga 2012/3/26 Mike Gerdts mger...@gmail.com: 2012/3/26 ольга крыжановская olga.kryzhanov...@gmail.com: How can I test if a file on ZFS has holes, i.e. is a sparse file,

Re: [zfs-discuss] test for holes in a file?

2012-03-26 Thread Joerg Schilling
? olga.kryzhanov...@gmail.com wrote: How can I test if a file on ZFS has holes, i.e. is a sparse file, using the C api? See star . ftp://ftp.berlios.de/pub/star/ or http://hg.berlios.de/repos/schillix-on/file/e3829115a7a4/usr/src/cmd/star/hole.c The interface was

Re: [zfs-discuss] test for holes in a file?

2012-03-26 Thread Andrew Gabriel
I just played and knocked this up (note the stunning lack of comments, missing optarg processing, etc)... Give it a list of files to check... #define _FILE_OFFSET_BITS 64 #includesys/types.h #includeunistd.h #includestdio.h #includesys/stat.h #includefcntl.h int main(int argc, char

Re: [zfs-discuss] test for holes in a file?

2012-03-26 Thread Bob Friesenhahn
On Mon, 26 Mar 2012, Andrew Gabriel wrote: I just played and knocked this up (note the stunning lack of comments, missing optarg processing, etc)... Give it a list of files to check... This is a cool program, but programmers were asking (and answering) this same question 20+ years ago

Re: [zfs-discuss] test for holes in a file?

2012-03-26 Thread Mike Gerdts
On Mon, Mar 26, 2012 at 6:18 PM, Bob Friesenhahn bfrie...@simple.dallas.tx.us wrote: On Mon, 26 Mar 2012, Andrew Gabriel wrote: I just played and knocked this up (note the stunning lack of comments, missing optarg processing, etc)... Give it a list of files to check... This is a cool

Re: [zfs-discuss] test for holes in a file?

2012-03-26 Thread Richard Elling
On Mar 26, 2012, at 4:18 PM, Bob Friesenhahn wrote: On Mon, 26 Mar 2012, Andrew Gabriel wrote: I just played and knocked this up (note the stunning lack of comments, missing optarg processing, etc)... Give it a list of files to check... This is a cool program, but programmers were

Re: [zfs-discuss] webserver zfs root lock contention under heavy load

2012-03-26 Thread Aubrey Li
On Tue, Mar 27, 2012 at 1:15 AM, Jim Klimov j...@cos.ru wrote: Well, as a further attempt down this road, is it possible for you to rule out ZFS from swapping - i.e. if RAM amounts permit, disable the swap at all (swap -d /dev/zvol/dsk/rpool/swap) or relocate it to dedicated slices of same or