tag:blogger.com,1999:blog-11788780.post753874195866970462..comments2023-12-29T13:22:33.104-08:00Comments on JJinuxLand: Linux: Minimizing Memory Usagejjinuxhttp://www.blogger.com/profile/03270879497119114175noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-11788780.post-12904304035955158472009-11-17T22:36:40.518-08:002009-11-17T22:36:40.518-08:00> The classical reason why X is seemingly takin...> The classical reason why X is seemingly taking up so much memory is that it includes graphics cards drivers. These drivers need to map the memory on the graphics card, and thus it looks to the kernel as if the process is using hundreds of megs of RAM, while it's really not.<br /><br />Ah, thanks.jjinuxhttps://www.blogger.com/profile/03270879497119114175noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-18564300163659657752009-11-17T22:36:13.430-08:002009-11-17T22:36:13.430-08:00Eugene, thanks for the insightful comment.
> S...Eugene, thanks for the insightful comment.<br /><br />> Shannon, you are forgetting about the shared memory - i.e. code which is being shared by multiple applications. Gvim doesn't consume 27MB but only 14MB, the rest is shared libraries like GTK. That's the reason why you have so much RAM left :-)<br /><br />Thank you for explaining that! I've been using Linux for a decade, and I still didn't know that!<br /><br />> That is also why you must use the same technology as your underlying operating system when developing a desktop software, otherwise every single little Gnome applet would end up eating 20MB (if you did them in Java) and your entire system would swap itself to death.<br /><br />Agreed. I love native GUIs.<br /><br />> Can't comment on Gentoo, but Arch is indeed sweet, check it out sometimes: it does feel snappier and the packages in standard repos are much newer than Debian/Ubuntu's<br /><br />Ugh, okay, I'm convinced. I have to give it a shot. I used to switch distros every month, but I've been pretty content with Ubuntu for a few years. I guess its time to give Arch a month ;)jjinuxhttps://www.blogger.com/profile/03270879497119114175noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-2051480128612201852009-11-16T06:48:49.340-08:002009-11-16T06:48:49.340-08:00Apreche, the less memory applications use, the mor...Apreche, the less memory applications use, the more memory is available for disk buffers, and the snappier your system will feel.Paul Brannanhttps://www.blogger.com/profile/01608027891457305677noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-89282825410734468522009-11-16T06:21:06.207-08:002009-11-16T06:21:06.207-08:00This is exactly right. However, even with Firefox ...This is exactly right. However, even with Firefox and Netbeans eating all the RAM who cares? It's only an issue if you run out. As long as you have RAM free, who cares how much any individual apps are using?Unknownhttps://www.blogger.com/profile/15553933396173274043noreply@blogger.comtag:blogger.com,1999:blog-11788780.post-25667168875340905452009-11-16T01:34:14.379-08:002009-11-16T01:34:14.379-08:00The classical reason why X is seemingly taking up ...The classical reason why X is seemingly taking up so much memory is that it includes graphics cards drivers. These drivers need to map the memory on the graphics card, and thus it looks to the kernel as if the process is using hundreds of megs of RAM, while it's really not.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11788780.post-90004416749453149992009-11-15T22:38:08.424-08:002009-11-15T22:38:08.424-08:00Shannon, you are forgetting about the shared memor...Shannon, you are forgetting about the shared memory - i.e. code which is being shared by multiple applications. Gvim doesn't consume 27MB but only 14MB, the rest is shared libraries like GTK. That's the reason why you have so much RAM left :-)<br /><br />That is also why you must use the same technology as your underlying operating system when developing a desktop software, otherwise every single little Gnome applet would end up eating 20MB (if you did them in Java) and your entire system would swap itself to death.<br /><br />Can't comment on Gentoo, but Arch is indeed sweet, check it out sometimes: it does feel snappier and the packages in standard repos are much newer than Debian/Ubuntu'sEugueny Kontsevoyhttps://www.blogger.com/profile/10637713202712446933noreply@blogger.com