How to estimate the size of temp segment required?

Original text of this message