How do I know if the compression is actually working after turn it on?

There are statistic data that provide the throughput and compression ratio information.  It can be viewed by execute the command "show statistic compression <virtualID>" from CLI or select statistic tab in the compression setting of the WebUI.