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 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 better

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 w

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 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 programmer

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 before

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 #include #include #include #include #include int main(int argc, char **argv) { int i; for (i = 1; i

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

2012-03-26 Thread Joerg Schilling
? 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 defined for star in September 2

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 : > 2012/3/26 ольга крыжановская : >> 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 lse

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

2012-03-26 Thread Mike Gerdts
2012/3/26 ольга крыжановская : > 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 zfs-discuss@opensolaris.org http:/

[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   \-`\-'.  `'-..-| /       http://twitter.com/fleyt

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 fo

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 > roo

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

2012-03-26 Thread John D Groenveld
In message , 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 very well >on many non-approved modern systems. http://w

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 > wrote: >> Apologies to the ZFSers, this thread really belongs elsewhere. >> >> Let me explain belo

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 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 am not saying there

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 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, although

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 hav

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 i

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 - COM

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, 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 is this? Thi