If you are contemplating putting a heavier than air vapor extinguisher (Halon type extinguisher) in your engine compartment, you will most likely be unhappy if it is ever needed. The type that might provide you a chance at extinguishment of an engine fire is a multi-purpose dry chemical extinguisher with multiple nozzles to cover the area with agent. Multi-purpose chemical tends to partially melt and stick to the hot parts and then extinguishes the fire with a smothering type action. (it also helps chemically interupt the chain reaction of fire which is the fourth side of the fire tetrahedron but that's probably too involved of a discussion for here) By sizing the extinguisher to put enough agent into the compartment to make the cloud penetrate everywhere, you have a pretty good chance of success.
The maintenance on such an extinguisher would be problematic. Because of the size of the particles, around 25-75 microns, it tends to pack down even though it is siliconized to help prevent that from happening. This is why you should turn your portable extinguishers upside down and make sure the powder is loose every month. How many people do that with their portable extinguishers now, and imagine how many would unbolt a tank with 40 pounds or so of agent and flip it a few times every month.
For my money, and effort, I'd rather keep my engine compartment clean and leak free. Clean engine compartments don't often catch fire. Leaks are easier to see when they are small. The engine runs cooler without a layer of crud. Chafed wiring is easier to see. Carry an adequate number of portable extinguishers and you'll also be able to take them somewhere else, another coach or building. Just some thoughts.....
Ken