size of /proc/kcore grows?

From: Christian (evil_at_g-house.de)
Date: 03/04/05

  • Next message: Nigel Cunningham: "Re: swsusp: allow resume from initramfs"
    Date:	Fri, 04 Mar 2005 23:37:49 +0100
    To: linux-kernel@vger.kernel.org
    
    

    hi,

    i've just tried to "search for something in the RAM", so i thougt
    /proc/kcore would be a good address to start. i really only wanted to
    grep for raw data throught it, i did not need any specific meta-data.

    ok, i checked:

    $ ls -lah /proc/kcore
    -r-------- 1 root root 256M Mar 4 23:25 /proc/kcore

    which makes sense, since i have 256MB RAM.

    $ su -
    Password:
    root$ cp /proc/kcore /data/Incoming/
    `/proc/kcore' -> `/data/Incoming/kcore'
    root$ ls -la /proc/kcore /data/Incoming/kcore
    -r-------- 1 root root 1.0G Mar 4 23:26 /data/Incoming/kcore
    -r-------- 1 root root 1.0G Mar 4 23:27 /proc/kcore

    whooha! /proc/kcore and its new on-disk copy are now both 1GB in size.
    how comes? i could imagine, that when "cp" tried to copy /proc/kcore the
    RAM gets filled with /proc/kcore again, thus doubling it...somehow...but
    cp continued with no errors, why should it double /proc/kcore
    (256MB->512MB) and then again (512MB->1024MB), but stop after this? i
    would've expected cp to never stop copying...

    i don't get it,
    Christian.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Nigel Cunningham: "Re: swsusp: allow resume from initramfs"

    Relevant Pages

    • Re: 2.6.0-test9 - poor swap performance on low end machines
      ... hardware and in the way we use computers (interactive, Client/Server, ... fixing it in hardware by adding RAM works ... What we _can_ do in software, though, is prevent thrashing as long as ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: HIGHMEM4G config for 1GB RAM on desktop?
      ... |>outweighed by the fact that more disk data stays cached in RAM (so I hit ... Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: experiences beyond 4 GB RAM with 2.4.22
      ... > 2) Box is very slow, kswapd looks very active during tar of a local harddisk. ... My only guess is that it is doing a lot of copying into low memory ... It won't use all the RAM, but it would be interesting if it were ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 00/07][RFC] i386: NUMA emulation
      ... just the fact that the system boot memory test takes 3-4 times as long ... with 8G or ram then with 4G of ram. ... And the other way is to make it so complicated that there are no obvious deficiencies. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6 vm/elevator loading down disks where 2.4 does not
      ... disk more often, as they had less RAM for cache. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)