Antw: Re: Slow dir / Performance.

2014-12-09 Thread Ulrich Windl
Does "man blktrace" sound useful to you? With this command and others you can 
produce "funny output" like this:
9-1  AW271   68123744   16   153.802866844 1  1057 xfsbufd/dm-12
9-1  QW272   68123744   16   153.802871575 1  1057 xfsbufd/dm-12
9-1  AW273  161876032   16   153.802877568 1  1057 xfsbufd/dm-12
9-1  QW274  161876032   16   153.802877938 1  1057 xfsbufd/dm-12

(the above example is tracing an MD-RAID1)

The RAID leg in a virtual machine produces output like this:
202-80  Q   WS496   63353637   8811.636835786 0   799 md1_raid1
202-80  G   WS497   63353637   8811.636837191 0   799 md1_raid1
202-80  Q   WS498   63353725   2911.636838296 0   799 md1_raid1
202-80  G   WS499   63353725   2911.636838924 0   799 md1_raid1
202-80  I   WS500   63353555   8211.636854804 0   799 md1_raid1
202-80  I   WS501   63353637   8811.636855654 0   799 md1_raid1
202-80  I   WS502   63353725   2911.636855895 0   799 md1_raid1

A crude sketch of commands to produce the files like above is:
ACTIONS=$(echo 'issue,complete,read,write' |
 sed -e 's/,/ -a /g; s/^/-a /')
trace()
{
blktrace -d "$1" $ACTIONS -w "$2" -o - |
blkparse -i - -f '%M-%m %2a %4d %10s %10S %4n %5T.%t %c %5p %C\n' -o $3 &
}
#...
: ${OBASE:=/tmp/blocktrace-}
OUTFILE=${OBASE}$(date -u '+%Y%m%d_%H%M')-${NAME}.out
echo "trace $DEV ($NAME) to $OUTFILE for $DURATION seconds"
trace /dev/${DEV#/dev/} $DURATION $OUTFILE

Regards,
Ulrich

>>> Stefan B  schrieb am 09.12.2014 um 09:22 in Nachricht
:
> Thanks for the messages,
> 
> I have change the open-iscsi settings with Citrix Perfomance settings, and 
> i have set the blockdev to 16384, i see more perfomance.
> 
> But the first dir or commando on the dir, give the same slow perfomace, it 
> wil be taken more than 30 secondes.
> 
> We not running any nis or radius server.
> 
> On Wednesday, December 3, 2014 8:24:06 AM UTC+1, Uli wrote:
>>
>> >>> > schrieb am 02.12.2014 um 15:06 in 
>> Nachricht 
>> <5a7097b3-0dd7-4c28-abbf-ff66800b8...@googlegroups.com >: 
>> > We have 2 Equallogic Systems, And a Dell Servers. 
>> > 
>> > We have every server give a block device home dir , so the user data are 
>> on 
>> > the home dir this is working great its format on xfs filesystem, and 
>> > running iscsiadm version 2.0-870 with linux kernel 3.10.57 
>> > 
>> > But when we logging on the server, the first time we do a dir command on 
>> > the home dir, its take a long time when we get feedback on the dir , the 
>> > next time is fast when we do a dir. 
>>
>> Are you sure it's related to iSCSI? Especially for the /home dire several 
>> different UIDs/GIDs are involved. We had a slow "ls -l /home" performance 
>> when the NIS server had a problem. Maybe you use LDAP or something else? 
>> Maybe try "hdparm -t " to get a rough number how fast your 
>> block device can be read. I know there are better tests, but this one is 
>> quick and easy to perform... 
>>
>> > Now we have users on this systems and this problem give not good 
>> > performance on sql and websites an e-mail we are running on the server. 
>>
>> You are running a database ("sql") via iSCSI? 
>>
>> > 
>> > Are the some information how i can fix ore maybe get this problem better 
>> > under control ? 
>> > 
>> > I hope so that somebody can help me, i am searching for more than 3 
>> weeks 
>> > now. 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups 
>> > "open-iscsi" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an 
>> > email to open-iscsi+...@googlegroups.com . 
>> > To post to this group, send email to open-...@googlegroups.com 
>> . 
>> > Visit this group at http://groups.google.com/group/open-iscsi. 
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>>
>>
>>
>>
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "open-iscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to open-iscsi+unsubscr...@googlegroups.com.
> To post to this group, send email to open-iscsi@googlegroups.com.
> Visit this group at http://groups.google.com/group/open-iscsi.
> For more options, visit https://groups.google.com/d/optout.



-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.


Re: Slow dir / Performance.

2014-12-09 Thread Stefan B
Thanks for the messages,

I have change the open-iscsi settings with Citrix Perfomance settings, and 
i have set the blockdev to 16384, i see more perfomance.

But the first dir or commando on the dir, give the same slow perfomace, it 
wil be taken more than 30 secondes.

We not running any nis or radius server.

On Wednesday, December 3, 2014 8:24:06 AM UTC+1, Uli wrote:
>
> >>> > schrieb am 02.12.2014 um 15:06 in 
> Nachricht 
> <5a7097b3-0dd7-4c28-abbf-ff66800b8...@googlegroups.com >: 
> > We have 2 Equallogic Systems, And a Dell Servers. 
> > 
> > We have every server give a block device home dir , so the user data are 
> on 
> > the home dir this is working great its format on xfs filesystem, and 
> > running iscsiadm version 2.0-870 with linux kernel 3.10.57 
> > 
> > But when we logging on the server, the first time we do a dir command on 
> > the home dir, its take a long time when we get feedback on the dir , the 
> > next time is fast when we do a dir. 
>
> Are you sure it's related to iSCSI? Especially for the /home dire several 
> different UIDs/GIDs are involved. We had a slow "ls -l /home" performance 
> when the NIS server had a problem. Maybe you use LDAP or something else? 
> Maybe try "hdparm -t " to get a rough number how fast your 
> block device can be read. I know there are better tests, but this one is 
> quick and easy to perform... 
>
> > Now we have users on this systems and this problem give not good 
> > performance on sql and websites an e-mail we are running on the server. 
>
> You are running a database ("sql") via iSCSI? 
>
> > 
> > Are the some information how i can fix ore maybe get this problem better 
> > under control ? 
> > 
> > I hope so that somebody can help me, i am searching for more than 3 
> weeks 
> > now. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "open-iscsi" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to open-iscsi+...@googlegroups.com . 
> > To post to this group, send email to open-...@googlegroups.com 
> . 
> > Visit this group at http://groups.google.com/group/open-iscsi. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.


Antw: Slow dir / Performance.

2014-12-02 Thread Ulrich Windl
>>>  schrieb am 02.12.2014 um 15:06 in Nachricht
<5a7097b3-0dd7-4c28-abbf-ff66800b8...@googlegroups.com>:
> We have 2 Equallogic Systems, And a Dell Servers.
> 
> We have every server give a block device home dir , so the user data are on 
> the home dir this is working great its format on xfs filesystem, and 
> running iscsiadm version 2.0-870 with linux kernel 3.10.57
> 
> But when we logging on the server, the first time we do a dir command on 
> the home dir, its take a long time when we get feedback on the dir , the 
> next time is fast when we do a dir.

Are you sure it's related to iSCSI? Especially for the /home dire several 
different UIDs/GIDs are involved. We had a slow "ls -l /home" performance when 
the NIS server had a problem. Maybe you use LDAP or something else? Maybe try 
"hdparm -t " to get a rough number how fast your block device can 
be read. I know there are better tests, but this one is quick and easy to 
perform...

> Now we have users on this systems and this problem give not good 
> performance on sql and websites an e-mail we are running on the server.

You are running a database ("sql") via iSCSI?

> 
> Are the some information how i can fix ore maybe get this problem better 
> under control ?
> 
> I hope so that somebody can help me, i am searching for more than 3 weeks 
> now.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "open-iscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to open-iscsi+unsubscr...@googlegroups.com.
> To post to this group, send email to open-iscsi@googlegroups.com.
> Visit this group at http://groups.google.com/group/open-iscsi.
> For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.


Re: Slow dir / Performance.

2014-12-02 Thread Donald Williams
Hello,

 What Linux distro are you using?There are some common tweaks to the
/etc/iscsid.conf and sysctl.conf files that help improve performance.

This link covers how to configure RHEL with EQL.  The same principles apply
to any recent Linux distro.


http://en.community.dell.com/cfs-filesystemfile/__key/communityserver-components-postattachments/00-19-86-14-22/TR1062_2D00_LinuxDeploy_2D00_v1-2.pdf

 Most distros locate all the files under /etc/iscsi.   RHEL/CentOS have
some in /etc/iscsi and the rest in /var/lib/iscsi

 Are you using MPIO?

 What FW are you running on the EQL storage?

 A common tweak I run to help improve read performance is "blockdev".
/sbin/blockdev --setra  /dev/device

 This increases the read ahead value which is pretty low by default.   It's
covered in the PDF as well.

  Lastly have you opened a support case with Dell? They can review the
diags and switch logs.

 Regards

 Don


On Tue, Dec 2, 2014 at 9:06 AM,  wrote:

> We have 2 Equallogic Systems, And a Dell Servers.
>
> We have every server give a block device home dir , so the user data are
> on the home dir this is working great its format on xfs filesystem, and
> running iscsiadm version 2.0-870 with linux kernel 3.10.57
>
> But when we logging on the server, the first time we do a dir command on
> the home dir, its take a long time when we get feedback on the dir , the
> next time is fast when we do a dir.
> Now we have users on this systems and this problem give not good
> performance on sql and websites an e-mail we are running on the server.
>
> Are the some information how i can fix ore maybe get this problem better
> under control ?
>
> I hope so that somebody can help me, i am searching for more than 3 weeks
> now.
>
> --
> You received this message because you are subscribed to the Google Groups
> "open-iscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to open-iscsi+unsubscr...@googlegroups.com.
> To post to this group, send email to open-iscsi@googlegroups.com.
> Visit this group at http://groups.google.com/group/open-iscsi.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.


Slow dir / Performance.

2014-12-02 Thread stefjeot
We have 2 Equallogic Systems, And a Dell Servers.

We have every server give a block device home dir , so the user data are on 
the home dir this is working great its format on xfs filesystem, and 
running iscsiadm version 2.0-870 with linux kernel 3.10.57

But when we logging on the server, the first time we do a dir command on 
the home dir, its take a long time when we get feedback on the dir , the 
next time is fast when we do a dir.
Now we have users on this systems and this problem give not good 
performance on sql and websites an e-mail we are running on the server.

Are the some information how i can fix ore maybe get this problem better 
under control ?

I hope so that somebody can help me, i am searching for more than 3 weeks 
now.

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.