How to check ATmega328 or ATmega168

Thanks for all your help. I use the command avr-size with the el file and I got:

text data bss dec hex
14688 1642 378 16708

the SRAM usage (data+bss) is greater than the SRAM limit (2k), so of course you're right.

I'm going to change all may code to use PROGMEM