DBAsupport.com Forums - Powered by vBulletin
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: 100MB Sort Area Size

  1. #1
    Join Date
    Aug 2000
    Location
    Shanghai
    Posts
    433
    I am tuning a oracle8.0.5 database . I am surprised discover that in the original initial file , the sort area size is set 100MB (even though the temporary tablespace is only 100MB) .

    I think it's very wrong as the sort area size is created in UGA and it may consume more Server memeory .


    How do you think ? Any suggestion
    1. www.dbasupport.com
    2. www.dbforums.com
    3. www.itpub.net
    4. www.csdn.net
    5. www.umlchina.com
    6. www.tek-tips.com
    7. www.cnforyou.com
    8. fm365.federal.com.cn
    9. www.programmersheaven.com
    10.http://msdn.microsoft.com/library/default.asp
    ligang1000@hotmail.com

  2. #2
    Join Date
    Jul 2002
    Location
    Lincolnshire, IL
    Posts
    203
    100 MB sort area size is quite reasonable. There are a Dbs where we use more then that say 200MB also. Only if there is not enough space in Sort area size then temporary segment is used by oracle.
    Sandy
    "Greatest Rewards come only with Greatest Commitments!"

  3. #3
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    normally more than 30 ~ 40 mb sort_area_size wont yield you extra benefits

  4. #4
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    SORT_AREA_SIZE parameter is per session so you should also consider no. of concurrent sessions..
    100MB sort_area_size with 10 sessions will need 1GB of memory and if not available can cause heavy swaps..

    Sanjay

  5. #5
    Join Date
    Apr 2001
    Location
    Brisbane, Queensland, Australia
    Posts
    1,203
    Yes, large SORT_AREA_SIZE 's with a high number of concurrent sessions can bring a server to it's knees.

    You should

    select * from v$license;

    You check your concurrent highwater mark and routinely check to see what is sorting via

    select * from v$sort_usage;

    Cheers,
    OCP 8i, 9i DBA
    Brisbane Australia

  6. #6
    Join Date
    Aug 2000
    Location
    Shanghai
    Posts
    433
    I think v$license shows the high water mark of number of session connected . But sort area size is only required in the active session .

    Any places to record the HWM of active concurrent session?
    1. www.dbasupport.com
    2. www.dbforums.com
    3. www.itpub.net
    4. www.csdn.net
    5. www.umlchina.com
    6. www.tek-tips.com
    7. www.cnforyou.com
    8. fm365.federal.com.cn
    9. www.programmersheaven.com
    10.http://msdn.microsoft.com/library/default.asp
    ligang1000@hotmail.com

  7. #7
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    Originally posted by: ligang
    I think v$license shows the high water mark of number of session connected . But sort area size is only required in the active session .

    Any places to record the HWM of active concurrent session?
    Code:
    select current_utilization, max_utilization from v$resource_limit
    where resource_name = 'sort_segment_locks';
    Sanjay


  8. #8
    Join Date
    Aug 2002
    Location
    Bangalore, India
    Posts
    405

    Cool

    Having greater sort_area_size values will surely lead to performance problems during normal activity. When user connect to database, he is allocated some amount of memory for UGA ( this value depends on sort_area_size, maxdatafiles, opencursors etc). During normal database activity, the no. of users are high, so the requirement for memory. This leads to heavy amount of swapping space affecting the database performance. So, a sort_area_size value of 5mb or less should be good for normal database activity, and ask the developers to tune thier queries

    Offcourse, sort_area_size of 500mb is good when we go for import or large index creation. These kind of activities should be planned and worked on.

    Again, this is where human touch comes to play....

    -nagarjuna

  9. #9
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    I am not sure if you have tried but if you set

    sort_area_size to 32MB
    and compre it to a sort_area_size of 64MB

    there is virtually no performance gain

    so setting sort_area_size to 500mb is pretty useless

  10. #10
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Originally posted by pando
    so setting sort_area_size to 500mb is pretty useless
    ... and also pretty harmless, I would add (despite what others have written about "large sort size + a lot of concurrent session = a great amount of memory reserved for sorting" - this is just another one of those old myths....)
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width