cancel
Showing results for 
Search instead for 
Did you mean: 

highest memory

Former Member
0 Kudos

Hi All,

How to check which query is using highest memory in Sybase IQ.

Regards,

Santosh

Accepted Solutions (0)

Answers (1)

Answers (1)

markmumy
Advisor
Advisor
0 Kudos

You an really only check the temp cache in use.  You can get that via sp_iqconnection.  Look at the Temp* output columns.  But, keep in mind that these encompass both memory and disk as data will freely move between the two without the user knowing.

There is no way to put a quota on main cache and to see the usage.  The only data in main cache is committed data and in-work transactions on main tables.  For committed data, it is shared amongst all users.  100GB of main cache could be used for columns/indexes on tables.  User1 logs in and is the only user so they technically are using 100GB of memory.  But then 50 other users log in and use the same data.  Since it is shared between all 51 users, there is no way to say that it is attached to a particular connection.

For in-work transactions, you can see the main table create and drop/delete space in use per connection.  This, again, is not limited to just cache, though.  It tracks all space in use by that connection to change data: in memory and on disk.

And if you are on IQ 16, you have the added Large Memory Accumulator (LMA) cache that is used to house the n-bit and FP dictionaries.  Like main, this is a shared space and cannot be accounted for on a per user basis.

Are you looking for some sort of accounting?  Or is this more to tune queries to reduce the memory footprint?

Mark

Former Member
0 Kudos

Hi Mark,

We have informatica job running which have some complex queries.

Can we lock some fix memory to individual complex queries?

Regards,

Santosh

markmumy
Advisor
Advisor
0 Kudos

Not directly.  What I would do is use IQ multiplex and have 1 or more nodes dedicated to Informatica.  This will isolate their workload from any one else and give you what you want.  Inside a single IQ instance, though, this cannot be done as the caches are shared resources.

Mark

Former Member
0 Kudos

Thanks Mark, I think IQ multiplex is the best way.

Regards,

Santosh