What is the difference between procfs and sysfs? Why are they made as file systems? As I understand it, proc is just something to store the immediate info regarding the processes running in the system.
proc is the old one, it is more or less without rules and structure. And at some point it was decided that proc was a little to chaotic and a new way was needed.
Then sysfs was created, and the new stuff that was added was put into sysfs like device information.
So in some sense they do the same, but sysfs is a little bit more structured.
Unix philosophy tells us that everything is a file, therefore it was created so it behaves as files.
Those parts has always been there and they will probably never move into sysfs.
But there is more old stuff that you can find in proc, that has not been moved.
sysfs is the Virtual Filesystem created during the 2.6 Kernel release cycle to show device information as procfs did not do this type of information that well.
Memory etc has not been ported to sysfs as it was never intended to show that type of information so it is unlikely it will be ported at all.