Simon Horman ha scritto: > On Mon, May 21, 2007 at 06:39:47PM +0200, Federico Belvisi wrote: >> Package: heartbeat-2 >> Version: 2.0.7-2 > > I'm not sure what the minimal cpu and memory requirements for > heartbeat-2 are, but perhaps someone the linux-ha-dev list has > some idea, I have Cced them. In the mean time, could you > supply some information on ammount of CPU and memory your > machine has. >
I cced this mail to bugzilla (hoping this is correct, if not let me know). This is the cpu from /proc/cpuinfo: CJ7:~# cat /proc/cpuinfo Processor : XScale-IXP42x Family rev 1 (v5l) BogoMIPS : 266.24 Features : swp half fastmult edsp CPU implementer : 0x69 CPU architecture: 5TE CPU variant : 0x0 CPU part : 0x41f CPU revision : 1 Cache type : undefined 5 Cache clean : undefined 5 Cache lockdown : undefined 5 Cache format : Harvard I size : 32768 I assoc : 32 I line length : 32 I sets : 32 D size : 32768 D assoc : 32 D line length : 32 D sets : 32 Hardware : Linksys NSLU2 Revision : 0000 Serial : 0000000000000000 and this is /proc/meminfo: CJ7:~# cat /proc/meminfo MemTotal: 29988 kB MemFree: 2164 kB Buffers: 392 kB Cached: 8008 kB SwapCached: 5204 kB Active: 11808 kB Inactive: 6884 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 29988 kB LowFree: 2164 kB SwapTotal: 497972 kB SwapFree: 471008 kB Dirty: 180 kB Writeback: 0 kB AnonPages: 10084 kB Mapped: 5896 kB Slab: 3692 kB PageTables: 1008 kB NFS_Unstable: 0 kB Bounce: 0 kB CommitLimit: 512964 kB Committed_AS: 135880 kB VmallocTotal: 991232 kB VmallocUsed: 17104 kB VmallocChunk: 966652 kB As you see it has about 32Mb ram + 500mb swap. At the moment there are some daemons running, like ssh, apache, mysql, and heartbeat v1 and virtual memory is moderately empty. No particular task is done, just a "white running" with services up with default configurations (i have yet to configure them). A typical "top" header is here: top - 08:29:12 up 8 min, 1 user, load average: 0.05, 0.54, 0.39 Tasks: 81 total, 1 running, 80 sleeping, 0 stopped, 0 zombie Cpu(s): 1.0%us, 1.0%sy, 0.0%ni, 98.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 29988k total, 28880k used, 1108k free, 548k buffers Swap: 497972k total, 27256k used, 470716k free, 8516k cached I found something interesting in /var/log/messages: i copy a little of it here because i found something strange. After starting heartbeat-2 there are kernel messages complaining on memory. There are no log like that when i started heartbeat v1. By converse, this happens every time i started heartbeat-2. Yesterday i tried several times and every time there are kernel messages like that: May 21 16:13:14 CJ7 heartbeat: [5025]: WARN: Core dumps could be lost if multiple dumps occur May 21 16:13:14 CJ7 heartbeat: [5025]: WARN: Consider setting /proc/sys/kernel/core_uses_pid (or equivalent) to 1 for maximum supportability May 21 16:13:14 CJ7 heartbeat: [5025]: WARN: Deprecated 'legacy' auto_failback option selected. May 21 16:13:14 CJ7 heartbeat: [5025]: WARN: Please convert to 'auto_failback on'. May 21 16:13:14 CJ7 heartbeat: [5025]: WARN: See documentation for conversion details. May 21 16:13:14 CJ7 heartbeat: [5025]: WARN: Logging daemon is disabled --enabling logging daemon is recommended May 21 16:13:14 CJ7 heartbeat: [5025]: info: ************************** May 21 16:13:14 CJ7 heartbeat: [5025]: info: Configuration validated. Starting heartbeat 2.0.7 May 21 16:13:15 CJ7 heartbeat: [5026]: info: heartbeat: version 2.0.7 May 21 16:13:35 CJ7 heartbeat: [5026]: info: Heartbeat generation: 12 May 21 16:13:35 CJ7 heartbeat: [5026]: info: No uuid found for current node - generating a new uuid. May 21 16:13:36 CJ7 heartbeat: [5026]: info: G_main_add_TriggerHandler: Added signal manual handler May 21 16:13:36 CJ7 heartbeat: [5026]: info: G_main_add_TriggerHandler: Added signal manual handler May 21 16:13:36 CJ7 heartbeat: [5026]: info: Removing /var/run/heartbeat/rsctmp failed, recreating. May 21 16:13:36 CJ7 heartbeat: [5026]: info: glib: ucast: write socket priority set to IPTOS_LOWDELAY on eth0 May 21 16:13:36 CJ7 heartbeat: [5026]: info: glib: ucast: bound send socket to device: eth0 May 21 16:13:36 CJ7 heartbeat: [5026]: info: glib: ucast: bound receive socket to device: eth0 May 21 16:13:36 CJ7 heartbeat: [5026]: info: glib: ucast: started on port 694 interface eth0 to 192.168.0.26 May 21 16:13:36 CJ7 heartbeat: [5026]: info: G_main_add_SignalHandler: Added signal handler for signal 17 May 21 16:13:48 CJ7 heartbeat: [5026]: info: Local status now set to: 'up' May 21 16:14:09 CJ7 kernel: oom-killer: gfp_mask=0x201d2, order=0 May 21 16:14:09 CJ7 kernel: Mem-info: May 21 16:14:09 CJ7 kernel: DMA per-cpu: May 21 16:14:09 CJ7 kernel: cpu 0 hot: high 6, batch 1 used:0 May 21 16:14:09 CJ7 kernel: cpu 0 cold: high 2, batch 1 used:1 May 21 16:14:09 CJ7 kernel: DMA32 per-cpu: empty May 21 16:14:09 CJ7 kernel: Normal per-cpu: empty May 21 16:14:09 CJ7 kernel: HighMem per-cpu: empty May 21 16:14:09 CJ7 kernel: Free pages: 824kB (0kB HighMem) May 21 16:14:09 CJ7 kernel: Active:2804 inactive:2014 dirty:0 writeback:460 unstable:0 free:206 slab:995 mapped:1028 pagetables:266 May 21 16:14:09 CJ7 kernel: DMA free:824kB min:724kB low:904kB high:1084kB active:11216kB inactive:8056kB present:32768kB pages_scanned:12160 all_unreclaimable? no May 21 16:14:09 CJ7 heartbeat: [5026]: info: Link jeep:eth0 up. May 21 16:14:09 CJ7 kernel: lowmem_reserve[]: 0 0 0 0 May 21 16:14:09 CJ7 heartbeat: [5026]: info: Status update for node jeep: status up May 21 16:14:10 CJ7 heartbeat: [5026]: WARN: G_CH_dispatch_int: Dispatch function for read child took too long to execute: 27550 ms (> 50 ms) (GSource: 0xbae20) May 21 16:14:10 CJ7 heartbeat: [5026]: WARN: Gmain_timeout_dispatch: Dispatch function for send local status was delayed 26550 ms (> 1010 ms) before being called $ May 21 16:14:11 CJ7 heartbeat: [5026]: info: Gmain_timeout_dispatch: started at 1701072 should have started at 1698417 May 21 16:14:11 CJ7 heartbeat: [5026]: WARN: Late heartbeat: Node cj7: interval 28560 ms May 21 16:14:12 CJ7 heartbeat: [5026]: WARN: G_CH_dispatch_int: Dispatch function for read child took too long to execute: 1910 ms (> 50 ms) (GSource: 0xbae20) May 21 16:14:12 CJ7 kernel: DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no May 21 16:14:12 CJ7 heartbeat: [5026]: WARN: G_CH_dispatch_int: Dispatch function for read child took too long to execute: 220 ms (> 50 ms) (GSource: 0xbae20) May 21 16:14:12 CJ7 kernel: lowmem_reserve[]: 0 0 0 0 May 21 16:14:12 CJ7 kernel: Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no May 21 16:14:12 CJ7 kernel: lowmem_reserve[]: 0 0 0 0 May 21 16:14:12 CJ7 kernel: HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no May 21 16:14:12 CJ7 kernel: lowmem_reserve[]: 0 0 0 0 May 21 16:14:12 CJ7 kernel: DMA: 42*4kB 12*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 824kB May 21 16:14:12 CJ7 logd: [4968]: WARN: G_CH_check_int: working on IPC channel took 730 ms (> 100 ms) May 21 16:14:12 CJ7 kernel: DMA32: empty May 21 16:14:12 CJ7 kernel: Normal: empty May 21 16:14:12 CJ7 kernel: HighMem: empty May 21 16:14:12 CJ7 kernel: Swap cache: add 18227, delete 14460, find 4527/5240, race 0+0 May 21 16:14:12 CJ7 kernel: Free swap = 457136kB May 21 16:14:12 CJ7 kernel: Total swap = 497972kB May 21 16:14:12 CJ7 kernel: Free swap: 457136kB May 21 16:14:12 CJ7 kernel: 8192 pages of RAM May 21 16:14:12 CJ7 kernel: 422 free pages May 21 16:14:12 CJ7 kernel: 712 reserved pages May 21 16:14:12 CJ7 kernel: 995 slab pages May 21 16:14:14 CJ7 kernel: 4160 pages shared May 21 16:14:14 CJ7 kernel: 3767 pages swap cached And so on, starting again with line "kernel: oom-killer: gfp_mask=0x201d2, order=0", with many repeats. If you need, i can send you the whole file. Hope this helps you guys, you all are doing a great work. -- Federico Belvisi -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]