The optimal loop tiling size is primarily constrained by the capacities of L1 and L2 caches. L1 caches are the fastest but smallest, typically ranging from 16KB to 64KB per core, while L2 caches are larger, usually 256KB to 1MB per core, offering a crucial balance for data locality.