Performance issue


 
Thread Tools Search this Thread
Operating Systems AIX Performance issue
# 8  
Old 04-12-2012
Hi,

P7 = 3.5Ghz and P6 = 4Ghz

P7 = Platform Firmware level: AL730_066

Pls check the below vmstat output is it a cpu bottelneck

Code:
vmstat -Iwt 1 20

System configuration: lcpu=3 mem=16384MB ent=3.00

   kthr            memory                         page                       faults                 cpu             time
----------- --------------------- ------------------------------------ ------------------ ----------------------- --------
  r   b   p        avm        fre    fi    fo    pi    po    fr     sr    in     sy    cs us sy id wa    pc    ec hr mi se
  0   2   0     991825     620753     0   309     0     0     0      0   321  11013  1892  1  6 53 40  0.22   7.3 13:17:05
  0   2   0     991827     620751     0   307     0     0     0      0   297   9111  1892  5  6 52 37  0.32  10.6 13:17:06
  1   2   0     991827     620751     0   342     0     0     0      0   349   8433 10162  5  8 55 33  0.37  12.4 13:17:07
  0   3   0     991842     620736     0   292     0     0     0      0   298   3243  1644  0 11 54 35  0.34  11.3 13:17:08
  3   4   0     991863     620715     0   328     0     0     0      0   330   3111  2005  7  8 55 30  0.48  16.0 13:17:09
  3   0   0     991865     620713     0    99     0     0     0      0   100    692   509 12  7 77  4  0.58  19.3 13:17:10
  1   5   0     991866     620712     0   416     0     0     0      0   418   4586  2201  0 13 45 41  0.41  13.6 13:17:11
  0   3   0     991866     620712     0   411     0     0     0      0   410   3701  1962  0 12 48 39  0.37  12.3 13:17:12
  0   3   0     991866     620712     0   406     0     0     0      0   407   3440  1791  0 12 52 36  0.37  12.2 13:17:13
  0   3   0     991866     620712     0   430     0     0     0      0   426   3552  2245  0  9 52 38  0.29   9.8 13:17:14
  1   3   0     991866     620712     0   402     0     0     0      0   403   3772  2117  0 10 53 37  0.30  10.1 13:17:15
  1   2   0     991866     620712     0   423     0     0     0      0   421   3384  2043  0 11 57 32  0.34  11.2 13:17:16
  0   5   0     991866     620711     0   408     0     0     0      0   411   5384  2038  0 10 53 36  0.31  10.4 13:17:17
 11   3   0     991866     620711     0   391     0     0     0      0   395   3662  2167  0 10 52 38  0.31  10.3 13:17:18
  0   6   0     991866     620711     0   412     0     0     0      0   413   4032  2066  0 11 52 38  0.33  10.9 13:17:19
  0   3   0     991866     620711     0   404     0     0     0      0   407   3277  1967  0 10 53 38  0.30   9.9 13:17:20
  2   5   0     991866     620711     0   431     0     0     0      0   446   4450  2007  0 12 53 34  0.38  12.7 13:17:21
  1   4   0     991866     620711     0   103     0     0     0      0   106    936   545  0  9 85  6  0.28   9.3 13:17:22
  0   4   0     991867     620710     0   417     0     0     0      0   426   5193  2241  1 11 51 38  0.35  11.6 13:17:23
  0   5   0     991867     620710     0   436     0     0     0      0   431   3480  2242  0  9 54 36  0.29   9.6 13:17:24

---------- Post updated at 01:29 PM ---------- Previous update was at 01:26 PM ----------

We are having sybase database and running end of the day process.
How to find out if the application is single or multi threaded.
# 9  
Old 04-12-2012
Somehow you ignored my questions more or less... anyway, good luck.

Quote:
How to find out if the application is single or multi threaded.
Check the column "Mthrd" for Y or N:
Code:
svmon -P| grep -p Pid


Last edited by zaxxon; 04-12-2012 at 08:55 AM.. Reason: phrasing
# 10  
Old 04-12-2012
your IO subsystem seems to be causing your issues. Did you setup your logical volumes (filesystems, raws) with max or minimum distribution? How big are your disks? What is the output of vmstat -v and vmstat -s. What is the queue depth on your disks and if this is vio storage, on the vio servers.
# 11  
Old 04-12-2012
Hi,

What do you mean by logical volumes (filesystems, raws) with max or minimum distribution? Disks are of 100Gb x 2. queue_depth is 40 and this is XIV storage.

Code:
#vmstat -v
              4194304 memory pages
              3986502 lruable pages
               574924 free pages
                    1 memory pools
               413979 pinned pages
                 95.0 maxpin percentage
                  3.0 minperm percentage
                 90.0 maxperm percentage
                 64.2 numperm percentage
              2561112 file pages
                  0.0 compressed percentage
                    0 compressed pages
                 64.2 numclient percentage
                 90.0 maxclient percentage
              2561112 client pages
                    0 remote pageouts scheduled
                    0 pending disk I/Os blocked with no pbuf
                    0 paging space I/Os blocked with no psbuf
                 2228 filesystem I/Os blocked with no fsbuf
                    8 client filesystem I/Os blocked with no fsbuf
                38788 external pager filesystem I/Os blocked with no fsbuf
                 25.2 percentage of memory used for computational pages

Code:
#vmstat -s
              2911826 total address trans. faults
               857620 page ins
              6318673 page outs
                    0 paging space page ins
                    0 paging space page outs
                    0 total reclaims
              1720594 zero filled pages faults
                35814 executable filled pages faults
                    0 pages examined by clock
                    0 revolutions of the clock hand
                    0 pages freed by the clock
               248183 backtracks
                    0 free frame waits
                    0 extend XPT waits
               110954 pending I/O waits
              7175994 start I/Os
              2749907 iodones
             22266453 cpu context switches
              2734773 device interrupts
               289681 software interrupts
              2108993 decrementer interrupts
                  371 mpc-sent interrupts
                  371 mpc-receive interrupts
                35496 phantom interrupts
                    0 traps
             92113814 syscalls

Regards,

VJM
# 12  
Old 04-12-2012
I mean the interpolicy which you usually define during creation of your logical volumes / rawdevices. If its set to minimum - and you have only a few huge disks - you speak to your data in a serial fashion - which is usually a quite bad idea for databases with the only exception of sybase IQ and oracle asm which handle the data distribution internally.

You still did not answer if you run sybase in filesystems or rawdevices. Generally - and specifically tempdb as this is the most used part of your sybase DB. From the amount of numperm you are using, you are utilizing most of your memory for filecaching so I would guess it's filesystems - or you are having otherwise plenty of non-raw IO which is buffered though it probably doesnt have to be. You might want to consider moving your tempdb's into RAM disk after having remediated the reason for hogging so much non-comp memory.

You might want to consider as well to set j2_dynamicBufferPreallocation=128 or 256. And ... what is your network size setting in your sybase version / which sybase version do you actually run. And is it the same between p6 and p7 - or did you maybe upgrade from 12 to 15 - in which case any stored procedures you might have can cause your issues.
# 13  
Old 04-12-2012
Few more questions:
Disks are assigned directly (FC adapters) or through VIO?
Those are 2 disks in mirror?
What is the pp and block size on you VG/filesystems.

But I agree with zxmous it does not looks like memory or cpu issue then only thing what left is storage.
Maybe you just got unlucky and got disks from pool shared with other heavy used systems.
Have you been trying to compare db IO stats a specially storage IO response time ?
# 14  
Old 04-13-2012
Hi,

The interpolicy is minimum. The sybase db and tempdb are on filesystems.
The sybase version is 12.5.2 on both live and new environment.
On P7 disk are from XIV directly attached to server and not from VIO. On old P6 the disk are from DS8k via SVC.

To zaxxon
The P7 lpars has dedicated processors same as P6, the only difference is P6 is 4Ghz and P7 s 3.5Ghz. The EOD process is absolutely same. As per the dba the database is indexed. The old environment is tuned and is on 5.3. As per the IBM documentation aix 6.1 is already tuned.

Yesterday I have disabled the multi threading and the time taken is reduced to 37 min. But its much more than live which is 25 min.

As zxmaus has suggested need to check by creating raw disk for temp db. I will check and revert.

I am posting the latest iostat and vmstat

Code:
#iostat -Dl -T

System configuration: lcpu=3 drives=3 paths=48 vdisks=2

Disks:                     xfers                                read                                write                                  queue                    time
-------------- -------------------------------- ------------------------------------ ------------------------------------ -------------------------------------- ---------
                 %tm    bps   tps  bread  bwrtn   rps    avg    min    max time fail   wps    avg    min    max time fail    avg    min    max   avg   avg  serv
                 act                                    serv   serv   serv outs              serv   serv   serv outs        time   time   time  wqsz  sqsz qfull
hdisk1           0.1 186.9K  22.0  24.3K 162.6K   0.5   3.6    0.4   51.0     0    0  21.5   1.0    0.6   99.5     0    0   0.1    0.0  173.7    0.0   0.0   0.1  12:08:58
hdisk0           0.1 210.9K  24.8   1.1K 209.9K   0.2   4.7    0.4   44.4     0    0  24.6   1.2    0.6  116.2     0    0   1.1    0.0   31.1S   0.0   0.0   0.6  12:08:58
hdisk5           0.0   4.9K   0.8   2.1K   2.7K   0.2   2.0    0.4   60.6     0    0   0.6   1.1    0.6   80.0     0    0   0.0    0.0    3.2    0.0   0.0   0.0  12:08:58

Code:
vmstat -Iwt 1 20

System configuration: lcpu=3 mem=16384MB ent=3.00

   kthr            memory                         page                       faults                 cpu             time
----------- --------------------- ------------------------------------ ------------------ ----------------------- --------
  r   b   p        avm        fre    fi    fo    pi    po    fr     sr    in     sy    cs us sy id wa    pc    ec hr mi se
  0   1   0    1028538     585864     0   801     0     0     0      0   790  59329  5278  5  6 40 50  0.33  11.1 12:09:44
  0   1   0    1028541     585861     0   799     0     0     0      0   786  59183  5321  5  6 39 50  0.32  10.7 12:09:45
  0   1   0    1028542     585860     0   820     0     0     0      0   808  61256  5455  5  6 36 54  0.33  10.9 12:09:46
  0   1   0    1028544     585858     0   798     0     0     0      0   789  61245  5285  4  6 39 51  0.32  10.8 12:09:47
  0   1   0    1028545     585857     0   802     0     0     0      0   793  60842  5307  5  6 41 48  0.34  11.2 12:09:48
  0   1   0    1028546     585856     0   672     0     0     0      0   668  50270  4503  4  5 40 51  0.28   9.2 12:09:49
  1   0   0    1028547     585855     0   694     0     0     0      0   689  53163  4611  4  5 40 51  0.28   9.5 12:09:50
  1   1   0    1028549     585853     0   777     0     0     0      0   772  60547  5146  4  6 37 52  0.33  10.9 12:09:51
  1   0   0    1028550     585852     0   759     0     0     0      0   750  56675  4983  4  5 40 50  0.31  10.2 12:09:52
  0   1   0    1028552     585850     0   777     0     0     0      0   763  58379  4973  4  6 37 53  0.32  10.5 12:09:53
  1   1   0    1028553     585849     0   712     0     0     0      0   705  53933  4822  4  5 36 54  0.29   9.8 12:09:54
  0   1   0    1028554     585848     0   729     0     0     0      0   719  55416  4809  4  5 39 52  0.30  10.0 12:09:55
  0   1   0    1028556     585846     0   849     0     0     0      0   835  61534  5513  5  6 40 49  0.34  11.4 12:09:56
  1   1   0    1028557     585845     0   905     0     0     0      0   893  68578  5922  5  7 38 50  0.37  12.3 12:09:57
  1   1   0    1028561     585841     0   735     0     0     0      0   730  58778  5250  8  6 40 47  0.42  13.8 12:09:58
  1   1   0    1028562     585840     0   939     0     0     0      0   921  12491  6995  4  5 40 52  0.28   9.3 12:09:59
  2   0   0    1028562     585840     0     2     0     0     0      0    21 176114 60259 19 25 57  0  1.42  47.4 12:10:00
  2   0   0    1028562     585840     0     1     0     0     0      0     7 238561 86684 12 34 54  0  1.54  51.4 12:10:01
  3   0   0    1028563     585839     0   204     0     0     0      0   205 214269 70577 10 29 51  9  1.32  43.9 12:10:02
  1   1   0    1028563     585838     1   385     0     0     0      0   295   4683  2530 23  2 56 19  0.75  25.1 12:10:03

Regards,

VJM

---------- Post updated at 12:40 PM ---------- Previous update was at 12:14 PM ----------

The below are the sybase settings.

Code:
[Named Cache:abwslive_data_cache]
	cache size = 750M
	cache status = mixed cache
	cache replacement policy = DEFAULT
	local cache partition number = DEFAULT
[16K I/O Buffer Pool]
	pool size = 100.0000M
	wash size = DEFAULT
	local async prefetch limit = DEFAULT
[4K I/O Buffer Pool]
	pool size = 360.0000M
	wash size = DEFAULT
	local async prefetch limit = DEFAULT
[Named Cache:default data cache]
	cache size = 800M
	cache status = default data cache
	cache replacement policy = DEFAULT
	local cache partition number = DEFAULT
[16K I/O Buffer Pool]
	pool size = 100.0000M
	wash size = DEFAULT
	local async prefetch limit = DEFAULT
[Meta-Data Caches]
	number of open databases = DEFAULT
	number of open objects = 4000
	open object spinlock ratio = DEFAULT
	number of open indexes = 700
	open index hash spinlock ratio = DEFAULT
	open index spinlock ratio = DEFAULT
	partition groups = DEFAULT
	partition spinlock ratio = DEFAULT
[Disk I/O]
	disk i/o structures = 600
	number of large i/o buffers = DEFAULT
	page utilization percent = DEFAULT
	number of devices = 30
	disable disk mirroring = DEFAULT
	allow sql server async i/o = DEFAULT
[SQL Server Administration]
	procedure cache size = 107520
        runnable process search count = 100
        number of aux scan descriptors = 1000
[User Environment]
	number of user connections = 500
	stack size = DEFAULT
	stack guard size = DEFAULT
	permission cache entries = 40
	user log cache size = 2560

Rest is default including network.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Performance issue in Linux

IN solaris, for network high-availability we are using IPMP concept, can u tell me in REDHAT LINUX what we are using... also pls share good step to read & understand the that concept... Also performance issue in linux what are step & cmd can u tell me??? (2 Replies)
Discussion started by: tiger09
2 Replies

2. AIX

Performance issue

Hi We have an AIX5.3 server with application which is written in C. We are facing server (lpar) hangs intermediately. If we open new telnet window prompts for user and takes hell of a time to authenticate, not only that if we run ps -aef then also it takes lot of time. surprisingly there is no... (2 Replies)
Discussion started by: powerAIX
2 Replies

3. UNIX for Dummies Questions & Answers

Performance issue

hi I am having a performance issue with the following requirement i have to create a permutation and combination on a set of three files such that each record in each file is picked and the output is redirected in a specific format but it is taking around 70 odd hours to prepare a combination... (7 Replies)
Discussion started by: mad_man12
7 Replies

4. Shell Programming and Scripting

Performance issue or something else?

Hi All, I have the following script which I use in Nagios to check the health of the applications, the problem with it is that the curl part ($TOTAL) does not return anything after running for 2-3 hrs, even though from command line the script runs fine but not from Nagios. There are 17... (1 Reply)
Discussion started by: jacki
1 Replies

5. Solaris

Performance issue

Hi Gurus, I am beginner in solaris and want to know what are the things we need to check for performance monitoring on our solairs OS. for DISK,CPU and MEMORY. Also how we do ipforwarding in slaris Many thanks for your help Pradeep P (4 Replies)
Discussion started by: ppandey21
4 Replies

6. UNIX for Advanced & Expert Users

Performance issue!

In my C program i am using very large file(approx 400MB) to read parts of it frequently. But due to large file the performance of the program goes down very badly. It shows very high I/O usage and I/O wait time. My question is, What are the ways to optimize or tune I/O on linux or how i can get... (10 Replies)
Discussion started by: mavens
10 Replies

7. Shell Programming and Scripting

performance issue

I want to read a file. is it good to use File I/O or shell script?? which one is the best option? (1 Reply)
Discussion started by: vishwaraj
1 Replies

8. UNIX for Advanced & Expert Users

performance issue

Hi, on a linux server I have the following : vmstat 2 10 procs memory swap io system cpu r b w swpd free buff cache si so bi bo in cs us sy id 0 4 0 675236 39836 206060 1617660 3 3 3 6 8 7 1 1 ... (1 Reply)
Discussion started by: big123456
1 Replies

9. AIX

performance issue

We have a AIX v5.3 on a p5 system with a poor performing Ingres database. We added one CPU to the system to see if this would help. Now there are two CPU's. with sar and topas -P I see good results: CPU usage around 30% with topas I only see good results in the process output screen, the... (1 Reply)
Discussion started by: rein
1 Replies

10. UNIX for Advanced & Expert Users

Performance issue

Hello all, I just stuck up in an uncertain situation related to network performance... I am trying to access one of my remote client unix machine from a distant location.. The client machine is Ultra-5_10 , with SunOS 5.5.1 The ndd result ( hme1 )shows that the machine is hooked to a... (5 Replies)
Discussion started by: shibz
5 Replies
Login or Register to Ask a Question