Announcement

Collapse
No announcement yet.

KDE SC 4.7 Release Candidate Hits The Web

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • siride
    replied
    Originally posted by kraftman View Post
    It does something like this:



    However, when comes to total memory usage maybe you're right.
    If you read my post, not only will you see that I talked about that algorithm, but I also said that it was not a good way to get total memory usage, or at least no better than just using the summary from /proc/meminfo.

    Leave a comment:


  • Silent Storm
    replied
    Originally posted by Jimbo View Post
    Sometime ago, I filled a bug about akonadi / nepomuk *brutal* memory usage on kde, of course I obtained no response (well, I was expecting that). If you are concerned about kde memory usage , you could vote this bug:



    As birdie has already pointed , opening a mysql instance to waste 200 - 300 MB of memory is just not the best idea to implement on a DE.
    Actually these bugs have been fixed in 4.6.x series. At least in Debian. My akonadi + instances eat < 5 (some akonadi services each ~900KB) MBs of RAM. I can pay that price for the ability of searching my documents.

    I personally dug that bug and they believed that the bug is in indexer but while sorting out another bug, it magically disappeared. I don't know which commit or when but it vanished. I personally use my work computer w/ KDE and suffered from it for months. Currently akonadi services and mysql just sits there silently and peacefully.

    OTOH, Akonadi should use virtuoso which really eats ~190MB, not MySQL.

    Cheers.

    Leave a comment:


  • kraftman
    replied
    Originally posted by siride View Post
    And what is it, specifically, that system monitor does that free doesn't do? Obviously, keep in mind the scope of free, which is total system memory usage, and not per-app, for which different tools are obviously better.
    It does something like this:

    The process akonadi_maildis (with pid 1215) is using approximately 4.5 MB of memory.
    It is using 3.8 MB privately, and a further 16.2 MB that is, or could be, shared with other programs.
    Dividing up the shared memory between all the processes sharing that memory we get a reduced shared memory usage of 752.0 KB. Adding that to the private usage, we get the above mentioned total memory footprint of 4.5 MB.
    However, when comes to total memory usage maybe you're right.

    Leave a comment:


  • droste
    replied
    Originally posted by RealNC View Post
    What on earth is KDE going to do with 8GB RAM
    I don't want KDE to use all of the 8GB. That would be really bad

    Leave a comment:


  • siride
    replied
    Originally posted by birdie View Post
    The test case I suggested works best in this scenario. I'd even dare to say it's the only correct way of measuring KDE RAM requirements.

    If you want to argue with me, then forward my method to Andrew Morton or Linus Torvalds and hear out what they say.
    You refuse to explain this "advanced" algorithm which incidentally can't possibly do better than free because free already does the best possible job of measure RAM usage. The division is very simple: RAM either belongs to buffers, cache, or is used by programs/the kernel actively. The kernel necessarily can easily know how much is in any of these because the datastructures are known and the kernel has to track its memory allocations anyway for MM purposes. If you want to be a little more fine-grained, you could subtract out vmalloc allocations and the size of the kernel text and ro data segments, but those last two are pretty small in the grand scheme of things (a few megs).

    The alternative is to go through each process and get the total memory used, then try to figure out what's shared and then try to subtract out buffers and caches (which you get from meminfo anyway) and you will end up with something less accurate that takes longer. I'm not sure why that would be a better way because figuring out memory sharing is a real pain in the ass. It's necessary if you want to find out per-process memory usage, but free doesn't even try to do that anyway, so it's moot for this discussion.

    Leave a comment:


  • RealNC
    replied
    Originally posted by droste View Post
    also: unused RAM = wasted RAM
    I have 8GB of RAM and almost all the time 2GB or more aren't used. I would be happy if KDE starts using more RAM to become more responsive.
    What on earth is KDE going to do with 8GB RAM

    Leave a comment:


  • droste
    replied
    Originally posted by DeiF View Post
    So the KDE RAM usage makes the PC slower or faster?
    There is no point in arguing without considering that!
    Why nobody is measuring speed? Oh, I see, because performance/responsiveness is more difficult to measure than looking at a single number and yelling "there, RAM wasted!"

    But, is it better to have RAM storing pixmaps, app data, or whatever KDE stores, or is it better to leave that RAM for disk cache, and let the system manage it?

    I think that, given the choice, it'll be almost always better to let the app decide what's better to store. After all, the app knows best what's most urgent to the user.
    also: unused RAM = wasted RAM
    I have 8GB of RAM and almost all the time 2GB or more aren't used. I would be happy if KDE starts using more RAM to become more responsive.

    Leave a comment:


  • DeiF
    replied
    So the KDE RAM usage makes the PC slower or faster?
    There is no point in arguing without considering that!
    Why nobody is measuring speed? Oh, I see, because performance/responsiveness is more difficult to measure than looking at a single number and yelling "there, RAM wasted!"

    But, is it better to have RAM storing pixmaps, app data, or whatever KDE stores, or is it better to leave that RAM for disk cache, and let the system manage it?

    I think that, given the choice, it'll be almost always better to let the app decide what's better to store. After all, the app knows best what's most urgent to the user.

    Leave a comment:


  • birdie
    replied
    The test case I suggested works best in this scenario. I'd even dare to say it's the only correct way of measuring KDE RAM requirements.

    If you want to argue with me, then forward my method to Andrew Morton or Linus Torvalds and hear out what they say.

    Leave a comment:


  • siride
    replied
    Originally posted by RealNC View Post
    It has better (more accurate) detection about free memory, buffers, etc.
    free uses /proc/meminfo, specifically, the first four values listed there. Do you want to propose that the kernel accounting is incorrect? If so, then how do you propose that system settings does any better? FWIW, I opened up my Ubuntu VM and used GNOME's system monitor and compared what it said to what free said and they matched exactly. I wonder why....

    Leave a comment:

Working...
X