Editlog records all the transactions and the Fsimage records all the namespaces. HDFS will use the EditLog to check point at intervals and then will generate a new snapshot for the Fsimage and then will update the new Fsimage in the memory and will create a new Fsimage to the disk and will delete the old EditLog after finishing check point.