The ‘on top of spaghetti’ came out from the ‘on top of old smoky’ which is a traditional American folk song. It came out as music in 1951. One of the earliest versions of this song was written by ‘Cecil Sharp’.