Loading ...
Sorry, an error occurred while loading the content.

Re: [nslu2-general] memory problems ...

Expand Messages
  • Mark Zander
    The syslog messages you are seeing are from the kernel as it attempts to search for free physical RAM. They are normal and are caused by processes requesting
    Message 1 of 3 , Jan 1, 2007
    • 0 Attachment
      The syslog messages you are seeing are from the kernel as it attempts to
      search for free physical RAM. They are normal and are caused by
      processes requesting more physical memory than is available. The kernel
      will try to swap inactive processes out to free up memory but sometimes
      it cannot so it will kill the process.
      You should know that rtorrent is _VERY_ memory intensive. Just 1 or 2
      torrents being downloaded will take 10MB or more of memory. If there are
      any other processes they you may be running out of memory. In fact for
      just terminal based program rtorrent used a lot of resources.

      I would suggest stopping all processes when you are running rtorrent.
      You mention that you are only running sshd, screen and rtorrent but do a
      'ps -ef' and make sure the other processes that can be stopped are.

      Zander.

      gornea.razvan wrote:
      >
      > Hi,
      >
      > I am using DebianSlug on a 266 MHz NSLU2. Recently I got lots of
      > problems related to the memory while running a relatively low number
      > of processes: sshd, screen and rtorrent/libtorrent. I am posting a few
      > kernel entries into the syslog. After a couple of page allocation
      > failure messages the kernel kills rtorrent. Any suggestions how to
      > solve this problem would be greatly appreciated. Thanks.
      >
      > Razvan
      >
      > Dec 27 10:22:25 trinity kernel: swapper: page allocation failure.
      > order:0, mode:0x20
      > Dec 27 10:22:25 trinity kernel: Mem-info:
      > Dec 27 10:22:25 trinity kernel: DMA per-cpu:
      > Dec 27 10:22:25 trinity kernel: cpu 0 hot: high 6, batch 1 used:0
      > Dec 27 10:22:25 trinity kernel: cpu 0 cold: high 2, batch 1 used:0
      > Dec 27 10:22:25 trinity kernel: DMA32 per-cpu: empty
      > Dec 27 10:22:25 trinity kernel: Normal per-cpu: empty
      > Dec 27 10:22:25 trinity kernel: HighMem per-cpu: empty
      > Dec 27 10:22:25 trinity kernel: Free pages: 240kB (0kB HighMem)
      > Dec 27 10:22:25 trinity kernel: Active:4540 inactive:455 dirty:0
      > writeback:0 unstable:0 free:60 slab:1596 mapped:4812 pagetables:108
      > Dec 27 10:22:25 trinity kernel: DMA free:240kB min:724kB low:904kB
      > high:1084kB active:18160kB inactive:1820kB present:32768kB
      > pages_scanned:66 all_unreclaimable? no
      > Dec 27 10:22:25 trinity kernel: lowmem_reserve[]: 0 0 0 0
      > Dec 27 10:22:25 trinity kernel: DMA32 free:0kB min:0kB low:0kB
      > high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0
      > all_unreclaimable? no
      > Dec 27 10:22:25 trinity kernel: lowmem_reserve[]: 0 0 0 0
      > Dec 27 10:22:25 trinity kernel: Normal free:0kB min:0kB low:0kB
      > high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0
      > all_unreclaimable? no
      > Dec 27 10:22:25 trinity kernel: lowmem_reserve[]: 0 0 0 0
      > Dec 27 10:22:25 trinity kernel: HighMem free:0kB min:128kB low:128kB
      > high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0
      > all_unreclaimable? no
      > Dec 27 10:22:25 trinity kernel: lowmem_reserve[]: 0 0 0 0
      > Dec 27 10:22:25 trinity kernel: DMA: 0*4kB 0*8kB 5*16kB 5*32kB 0*64kB
      > 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 240kB
      > Dec 27 10:22:25 trinity kernel: DMA32: empty
      > Dec 27 10:22:25 trinity kernel: Normal: empty
      > Dec 27 10:22:25 trinity kernel: HighMem: empty
      > Dec 27 10:22:25 trinity kernel: Swap cache: add 1996025, delete
      > 1995005, find 526130/930243, race 0+0
      > Dec 27 10:22:25 trinity kernel: Free swap = 970052kB
      > Dec 27 10:22:25 trinity kernel: Total swap = 987988kB
      > Dec 27 10:22:25 trinity kernel: Free swap: 970052kB
      > Dec 27 10:22:25 trinity kernel: 8192 pages of RAM
      > Dec 27 10:22:25 trinity kernel: 124 free pages
      > Dec 27 10:22:25 trinity kernel: 607 reserved pages
      > Dec 27 10:22:25 trinity kernel: 1596 slab pages
      > Dec 27 10:22:25 trinity kernel: 4251 pages shared
      > Dec 27 10:22:25 trinity kernel: 1020 pages swap cached
      >
      > Dec 27 10:27:36 trinity kernel: swapper: page allocation failure.
      > order:1, mode:0x20
      > Dec 27 10:27:37 trinity kernel: Mem-info:
      > Dec 27 10:27:37 trinity kernel: DMA per-cpu:
      > Dec 27 10:27:37 trinity kernel: cpu 0 hot: high 6, batch 1 used:0
      > Dec 27 10:27:37 trinity kernel: cpu 0 cold: high 2, batch 1 used:0
      > Dec 27 10:27:37 trinity kernel: DMA32 per-cpu: empty
      > Dec 27 10:27:37 trinity kernel: Normal per-cpu: empty
      > Dec 27 10:27:37 trinity kernel: HighMem per-cpu: empty
      > Dec 27 10:27:37 trinity kernel: Free pages: 276kB (0kB HighMem)
      > Dec 27 10:27:37 trinity kernel: Active:4691 inactive:335 dirty:0
      > writeback:0 unstable:0 free:69 slab:1540 mapped:4788 pagetables:110
      > Dec 27 10:27:37 trinity kernel: DMA free:276kB min:724kB low:904kB
      > high:1084kB active:18764kB inactive:1340kB present:32768kB
      > pages_scanned:987 all_unreclaimable? no
      > Dec 27 10:27:37 trinity kernel: lowmem_reserve[]: 0 0 0 0
      > Dec 27 10:27:38 trinity kernel: DMA32 free:0kB min:0kB low:0kB
      > high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0
      > all_unreclaimable? no
      > Dec 27 10:27:38 trinity kernel: lowmem_reserve[]: 0 0 0 0
      > Dec 27 10:27:38 trinity kernel: Normal free:0kB min:0kB low:0kB
      > high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0
      > all_unreclaimable? no
      > Dec 27 10:27:38 trinity kernel: lowmem_reserve[]: 0 0 0 0
      > Dec 27 10:27:38 trinity kernel: HighMem free:0kB min:128kB low:128kB
      > high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0
      > all_unreclaimable? no
      > Dec 27 10:27:38 trinity kernel: lowmem_reserve[]: 0 0 0 0
      > Dec 27 10:27:38 trinity kernel: DMA: 1*4kB 0*8kB 5*16kB 6*32kB 0*64kB
      > 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 276kB
      > Dec 27 10:27:38 trinity kernel: DMA32: empty
      > Dec 27 10:27:38 trinity kernel: Normal: empty
      > Dec 27 10:27:38 trinity kernel: HighMem: empty
      > Dec 27 10:27:38 trinity kernel: Swap cache: add 2006294, delete
      > 2005004, find 528969/935009, race 0+0
      > Dec 27 10:27:38 trinity kernel: Free swap = 970056kB
      > Dec 27 10:27:38 trinity kernel: Total swap = 987988kB
      > Dec 27 10:27:38 trinity kernel: Free swap: 970056kB
      > Dec 27 10:27:38 trinity kernel: 8192 pages of RAM
      > Dec 27 10:27:38 trinity kernel: 133 free pages
      > Dec 27 10:27:38 trinity kernel: 607 reserved pages
      > Dec 27 10:27:38 trinity kernel: 1540 slab pages
      > Dec 27 10:27:38 trinity kernel: 3758 pages shared
      > Dec 27 10:27:38 trinity kernel: 1290 pages swap cached
      >
      >
    • Razvan Gornea
      Hi, thanks for your reply. Indeed when those problems occured rtorrent was running with about 45 torrents but only 9 of them were downloading/uploading. Most
      Message 2 of 3 , Jan 1, 2007
      • 0 Attachment
        Hi,

        thanks for your reply. Indeed when those problems occured rtorrent was
        running with about 45 torrents but only 9 of them were
        downloading/uploading. Most of them were finished and just a few of them had
        peers and were actually uploading. Also kernel modules for firewall and
        denyhosts script are loaded all the time. I need to keep my torrents up and
        talking to the tracker as this gives me priority for uploading which
        improves my ratio ... etc. This situation is a minimum of stress on the Slug
        because every now and then I need to unrar the data, make images and burn it
        (for burning I have to shutdown rtorrent because otherwise the Slug resets).

        So I was wondering if those page allocation failures happen because a system
        call returns on a timer or the kernel just end up in a situation were it can
        not push any more pages to the swap? Maybe there is a way to tell the kernel
        to take his time ... or this is about all it can be done with a NSLU2?

        Thanks,
        Razvan


        On 1/1/07, Mark Zander <mark.zander@...> wrote:
        >
        > The syslog messages you are seeing are from the kernel as it attempts to
        > search for free physical RAM. They are normal and are caused by
        > processes requesting more physical memory than is available. The kernel
        > will try to swap inactive processes out to free up memory but sometimes
        > it cannot so it will kill the process.
        > You should know that rtorrent is _VERY_ memory intensive. Just 1 or 2
        > torrents being downloaded will take 10MB or more of memory. If there are
        > any other processes they you may be running out of memory. In fact for
        > just terminal based program rtorrent used a lot of resources.
        >
        > I would suggest stopping all processes when you are running rtorrent.
        > You mention that you are only running sshd, screen and rtorrent but do a
        > 'ps -ef' and make sure the other processes that can be stopped are.
        >
        > Zander.
        >
        > gornea.razvan wrote:
        > >
        > > Hi,
        > >
        > > I am using DebianSlug on a 266 MHz NSLU2. Recently I got lots of
        > > problems related to the memory while running a relatively low number
        > > of processes: sshd, screen and rtorrent/libtorrent. I am posting a few
        > > kernel entries into the syslog. After a couple of page allocation
        > > failure messages the kernel kills rtorrent. Any suggestions how to
        > > solve this problem would be greatly appreciated. Thanks.
        > >
        > > Razvan
        > >
        > > Dec 27 10:22:25 trinity kernel: swapper: page allocation failure.
        > > order:0, mode:0x20
        > > Dec 27 10:22:25 trinity kernel: Mem-info:
        > > Dec 27 10:22:25 trinity kernel: DMA per-cpu:
        > > Dec 27 10:22:25 trinity kernel: cpu 0 hot: high 6, batch 1 used:0
        > > Dec 27 10:22:25 trinity kernel: cpu 0 cold: high 2, batch 1 used:0
        > > Dec 27 10:22:25 trinity kernel: DMA32 per-cpu: empty
        > > Dec 27 10:22:25 trinity kernel: Normal per-cpu: empty
        > > Dec 27 10:22:25 trinity kernel: HighMem per-cpu: empty
        > > Dec 27 10:22:25 trinity kernel: Free pages: 240kB (0kB HighMem)
        > > Dec 27 10:22:25 trinity kernel: Active:4540 inactive:455 dirty:0
        > > writeback:0 unstable:0 free:60 slab:1596 mapped:4812 pagetables:108
        > > Dec 27 10:22:25 trinity kernel: DMA free:240kB min:724kB low:904kB
        > > high:1084kB active:18160kB inactive:1820kB present:32768kB
        > > pages_scanned:66 all_unreclaimable? no
        > > Dec 27 10:22:25 trinity kernel: lowmem_reserve[]: 0 0 0 0
        > > Dec 27 10:22:25 trinity kernel: DMA32 free:0kB min:0kB low:0kB
        > > high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0
        > > all_unreclaimable? no
        > > Dec 27 10:22:25 trinity kernel: lowmem_reserve[]: 0 0 0 0
        > > Dec 27 10:22:25 trinity kernel: Normal free:0kB min:0kB low:0kB
        > > high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0
        > > all_unreclaimable? no
        > > Dec 27 10:22:25 trinity kernel: lowmem_reserve[]: 0 0 0 0
        > > Dec 27 10:22:25 trinity kernel: HighMem free:0kB min:128kB low:128kB
        > > high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0
        > > all_unreclaimable? no
        > > Dec 27 10:22:25 trinity kernel: lowmem_reserve[]: 0 0 0 0
        > > Dec 27 10:22:25 trinity kernel: DMA: 0*4kB 0*8kB 5*16kB 5*32kB 0*64kB
        > > 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 240kB
        > > Dec 27 10:22:25 trinity kernel: DMA32: empty
        > > Dec 27 10:22:25 trinity kernel: Normal: empty
        > > Dec 27 10:22:25 trinity kernel: HighMem: empty
        > > Dec 27 10:22:25 trinity kernel: Swap cache: add 1996025, delete
        > > 1995005, find 526130/930243, race 0+0
        > > Dec 27 10:22:25 trinity kernel: Free swap = 970052kB
        > > Dec 27 10:22:25 trinity kernel: Total swap = 987988kB
        > > Dec 27 10:22:25 trinity kernel: Free swap: 970052kB
        > > Dec 27 10:22:25 trinity kernel: 8192 pages of RAM
        > > Dec 27 10:22:25 trinity kernel: 124 free pages
        > > Dec 27 10:22:25 trinity kernel: 607 reserved pages
        > > Dec 27 10:22:25 trinity kernel: 1596 slab pages
        > > Dec 27 10:22:25 trinity kernel: 4251 pages shared
        > > Dec 27 10:22:25 trinity kernel: 1020 pages swap cached
        > >
        > > Dec 27 10:27:36 trinity kernel: swapper: page allocation failure.
        > > order:1, mode:0x20
        > > Dec 27 10:27:37 trinity kernel: Mem-info:
        > > Dec 27 10:27:37 trinity kernel: DMA per-cpu:
        > > Dec 27 10:27:37 trinity kernel: cpu 0 hot: high 6, batch 1 used:0
        > > Dec 27 10:27:37 trinity kernel: cpu 0 cold: high 2, batch 1 used:0
        > > Dec 27 10:27:37 trinity kernel: DMA32 per-cpu: empty
        > > Dec 27 10:27:37 trinity kernel: Normal per-cpu: empty
        > > Dec 27 10:27:37 trinity kernel: HighMem per-cpu: empty
        > > Dec 27 10:27:37 trinity kernel: Free pages: 276kB (0kB HighMem)
        > > Dec 27 10:27:37 trinity kernel: Active:4691 inactive:335 dirty:0
        > > writeback:0 unstable:0 free:69 slab:1540 mapped:4788 pagetables:110
        > > Dec 27 10:27:37 trinity kernel: DMA free:276kB min:724kB low:904kB
        > > high:1084kB active:18764kB inactive:1340kB present:32768kB
        > > pages_scanned:987 all_unreclaimable? no
        > > Dec 27 10:27:37 trinity kernel: lowmem_reserve[]: 0 0 0 0
        > > Dec 27 10:27:38 trinity kernel: DMA32 free:0kB min:0kB low:0kB
        > > high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0
        > > all_unreclaimable? no
        > > Dec 27 10:27:38 trinity kernel: lowmem_reserve[]: 0 0 0 0
        > > Dec 27 10:27:38 trinity kernel: Normal free:0kB min:0kB low:0kB
        > > high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0
        > > all_unreclaimable? no
        > > Dec 27 10:27:38 trinity kernel: lowmem_reserve[]: 0 0 0 0
        > > Dec 27 10:27:38 trinity kernel: HighMem free:0kB min:128kB low:128kB
        > > high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0
        > > all_unreclaimable? no
        > > Dec 27 10:27:38 trinity kernel: lowmem_reserve[]: 0 0 0 0
        > > Dec 27 10:27:38 trinity kernel: DMA: 1*4kB 0*8kB 5*16kB 6*32kB 0*64kB
        > > 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 276kB
        > > Dec 27 10:27:38 trinity kernel: DMA32: empty
        > > Dec 27 10:27:38 trinity kernel: Normal: empty
        > > Dec 27 10:27:38 trinity kernel: HighMem: empty
        > > Dec 27 10:27:38 trinity kernel: Swap cache: add 2006294, delete
        > > 2005004, find 528969/935009, race 0+0
        > > Dec 27 10:27:38 trinity kernel: Free swap = 970056kB
        > > Dec 27 10:27:38 trinity kernel: Total swap = 987988kB
        > > Dec 27 10:27:38 trinity kernel: Free swap: 970056kB
        > > Dec 27 10:27:38 trinity kernel: 8192 pages of RAM
        > > Dec 27 10:27:38 trinity kernel: 133 free pages
        > > Dec 27 10:27:38 trinity kernel: 607 reserved pages
        > > Dec 27 10:27:38 trinity kernel: 1540 slab pages
        > > Dec 27 10:27:38 trinity kernel: 3758 pages shared
        > > Dec 27 10:27:38 trinity kernel: 1290 pages swap cached
        > >
        > >
        >
        >
        >
        >
        > Yahoo! Groups Links
        >
        >
        >
        >


        [Non-text portions of this message have been removed]
      Your message has been successfully submitted and would be delivered to recipients shortly.