Sketch size reporting issue

On an UNO rev3:

I have a sketch that shows Binary sketch size: 21,524 bytes (of a 32,256 byte maximum)
When I go much past 22,000 bytes I see the symptoms of a sketch that is too large - consistent rebooting.

How can I fix the sketch size calculation/whatever?

The constant rebooting is probably related to running out of RAM and not PROGMEM.

Do you have a lot of Serial or LCD prints() in your program?

I slashed a bunch out. Is there a doc that talks about the RAM usage and requirements? This think nuked on the setup() routine... so thats weird. I di have a lot of serial debugging...

Turn all your Serial.print("whatever") statements into Serial.print(F("whatever"))