Like an automobile engine, a diesel engine needs lubrication. In an arrangement similar to the engine cooling system, lubricating oil is distributed around the engine to the cylinders, crankshaft and other moving parts. There is a reservoir of oil, usually carried in the sump, which has to be kept topped up, and a pump to keep the oil circulating evenly around the engine. The oil gets heated by its passage around the engine and has to be kept cool, so it is passed through a radiator during its journey. The radiator is sometimes designed as a heat exchanger, where the oil passes through pipes encased in a water tank which is connected to the engine cooling system.
The...
more... oil has to be filtered to remove impurities and it has to be monitored for low pressure. If oil pressure falls to a level which could cause the engine to seize up, a "low oil pressure switch" will shut down the engine. There is also a high pressure relief valve, to drain off excess oil back to the sump.
Same Source