Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been reading posts about the kcore file because I was trying to free up disk space and came across it. I understand that it represents the contents of RAM and is supposedly not using hard disk space, but on my machine I have 512MB of RAM and the kcore file is over 1GB. Reading through "man 5 proc" states that kcore should be the size of RAM + 4KB. I am running SuSE 10. Any thoughts?
If your machine is working properly, don't touch it! Find some other way to free up disk space. Alternatively, you might consider adding another hard drive to your computer. Hard drives are relatively inexpensive these days and making linux see a new hard drive in general is quite simple.
Did you happen to try and look at it ???.
Haven't looked at the code, but seems it tries to accomodate any address it is requested to display. I managed to bump my 256Meg system up to a Gig pretty easily.
Have another look at the size after a reboot.
xode, I think malar is cognisant that it is to be left alone.
Thanks syg00 - you were right. I did try to view the contents before I knew what it was. After rebooting it was back to normal. That was good advice xode about leaving it alone - if I had I wouldn't have caused the problem before I knew what I was jacking with. I thought it was a coredump file at first so I tried to delete it. haha
thanks for the input. Linux rules, phonon and nmm are going to be the sh..
In general, /proc is a dummy filesystem. It is solely a product of the linux kernel in action, occupies no space on your hard drive and is the kernel's scratch space. You never want to write to it or make any other changes to it and you want to be very careful when reading its contents. For example, you don't want to scan /proc with an antivirus scanner because it can hang your system. However, you very much do want an antivirus scanner for your linux system and I have found F-Prot (http://www.f-prot.com) to be a good choice.
That raises an interesting point that I posted above. If it doesn't take up space then how could it have had a size that was twice the amount of RAM in my system? I guess I'm not 100% on how /proc works.
/proc may not occupy space on your hard drive (the linux filesytem that is) but it still occupies space, first in RAM and then probably on your hard drive swap partition (or file if you have linux set up that way). In any case, the contents of /proc are temporary, reflect the current state of your system and change as the state of your system changes, moment by moment.
If it doesn't take up space then how could it have had a size that was twice the amount of RAM in my system? I guess I'm not 100% on how /proc works.
If it doesn't take up space, what relevance is a (nominal) size ???.
In other words it is "indicative - FSVO indicative. People expect to see a "size" when looking at a "file" - so a size is presented.
Neither the "file" nor the "size" exist except as a concept (in the case of /proc, which is a pseudo filesystem). For most /proc "files" the data only exists when you attempt to read it.
Don't worry about it - it is just a figment of someones imagination.
For most /proc "files" the data only exists when you attempt to read it.
This is a nice concise way of putting it. This would also mean that writing to /proc will usually have unpredicatble results, since what you are writing to will only exist when you write to it and you will usually have no way in advance of knowing what you are writing to.
Don't worry about size of anything in /proc.
It is not a partition, and stuff there doesn't take space on hard drives or in RAM.
It is only a interface to more complex and deep system features.
It is a directory, but it is not
thanks for the timely response! haha that was a bad joke. I actually do appreciate the response just because it may help someone else when they start really digging into the filesystem and wondering what the heck /proc is all about. here's a new question - how do you like XGL? (not the right spot for a new questions I know, but still)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.