@Davis show cef memory tells us how everything is allocated but it doesn’t really tell us how much memory CEF can use. I compared your two outputs, these are the lines that changed:
CEF: fib : 158091136/158520960 ( 99%) 
CEF: terminal fibs list : 128/312 ( 41%) 
TAL: MTRIE n08 : 46892072/47022896 ( 99%) 
CEF: fib : 500048/501888 ( 99%) 
CEF: terminal fibs list : 76/168 ( 45%) 
TAL: MTRIE n08 : 65952/66136 ( 99%) 
So it tells us how much has been allocated but not much what kind of limits we have. There’s a couple of things you can try. I’m not sure if show sdm prefer works on IOS XE but you can try it:
SW1#show sdm prefer
The current template is "desktop default" template.
The selected template optimizes the resources in
the switch to support this level of features for
8 routed interfaces and 1024 VLANs.
number of unicast mac addresses: 6K
number of IPv4 IGMP groups + multicast routes: 1K
number of IPv4 unicast routes: 8K
number of directly-connected IPv4 hosts: 6K
number of indirect IPv4 routes: 2K
number of IPv4 policy based routing aces: 0
number of IPv4/MAC qos aces: 0.5K
number of IPv4/MAC security aces: 1K
The other two commands that might tell you something are:
show platform hardware qfp active tcam resource-manager usage
show platform hardware qfp active infra exmem statistics user
I only have a virtual IOS XE router here so I can’t try all of these
@Zaman by default, all routers from the RIB will be installed in the FIB for fast forwarding. Take a look at this output:
Router-1#show interfaces stats
Switching path Pkts In Chars In Pkts Out Chars Out
Processor 2611585 221761348 574206 34967664
Route cache 0 0 0 0
Distributed cache 4659753014024 361667274043438 4823679979355 373666593999284
Total 4659755625609 361667495804786 4823680553561 373666628966948
The distributed cache line shows the packets that have been received/forwarded by CEF:
- 4659753014024 packets have been received by CEF.
- 4823679979355 packets have been forwarded by CEF.
- 2611585 packets have been received by the processor. These are probably packets from routing protocols etc.
- 574206 packets have been forwarded by the processor. This could be any "management" traffic...stuff like OSPF, EIGRP, etc.