Is this normal Log file size?

  • DB size 775 GB

    Data file space usage 585 GB

    log size 185 GB - according to SQLPERF

    My question is this a normal logfile size of 585GB Datafile? any suggestions to reduce log file size besides SHRINKFILE? If I do SHRINKFILE , should I make LOGFILE to '0' and give the right size again? if so, what right size should I give after SHRINKING log file?

    Thank you!!!

  • Depends on the transactions you are doing and on the recovery model.

    What is the recovery model?

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • smtzac (4/24/2014)


    My question is this a normal logfile size of 585GB Datafile? any suggestions to reduce log file size besides SHRINKFILE?

    Why do you want to shrink the file? What problems are you seeing?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • full

  • @Gila, I like to get your opinion is it normal log size? it's ok to shrink Logfile size? have 520 VLF. should I shrink log file and reset logsize to zero? if I do that what's the initial size should I give to logfile size after shrink Log?

  • smtzac (4/25/2014)


    full

    Did you ever take transaction log backups?

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • yes, every 30 min.

  • smtzac (4/25/2014)


    yes, every 30 min.

    If you take a transaction log backup, the log is truncated.

    So you need to check if there is a lot of space available right before and after a transaction log backup.

    This can give an indication how much space you actually need for your transactions.

    Any way, if your log is that big, it means it needed that space to store transactions at some point in time.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • smtzac (4/25/2014)


    @Gila, I like to get your opinion is it normal log size?

    There's no such thing. A log file size is dependant on transactional workload, recovery model and log backup frequency. There isn't a 'normal'

    it's ok to shrink Logfile size?

    Generally no. If it got to that size it usually means that it needs to be that size.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • smtzac (4/24/2014)


    DB size 775 GB

    Data file space usage 585 GB

    log size 185 GB - according to SQLPERF

    My question is this a normal logfile size of 585GB Datafile? any suggestions to reduce log file size besides SHRINKFILE? If I do SHRINKFILE , should I make LOGFILE to '0' and give the right size again? if so, what right size should I give after SHRINKING log file?

    Thank you!!!

    What is the size of the data for the largest table (clustered index)?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • It might not be a "normal" size for that database if it grew large due to a lack of t-log backups some time in the past. But now that you are doing regular backups, it might not need all that space.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic. Login to reply