Author Topic: linux host : pm: no enough memory  (Read 1181 times)

bhzhu203

  • Guest
linux host : pm: no enough memory
« on: 12 February 2012, 08:28:43 »
hi ,everyone  when the game loads a big map  and many AIs, playing a long time ,

the screen will become black a short time , showing  " pm: no enough memory "

but.... my computer has a 2G memory card   and  2G swap room ,why do it happen that?

i think the vision 3.6.0 is no problom  ,but  3.6.2 and 3.63 are the wrong .

i think it a memory leak problem.

with sys log---
Code: [Select]
Running hook /usr/lib/pm-utils/power.d/disable_wol false:

/usr/lib/pm-utils/power.d/disable_wol false: success.
Running hook /usr/lib/pm-utils/power.d/hal-cd-polling false:

/usr/lib/pm-utils/power.d/hal-cd-polling false: success.
Running hook /usr/lib/pm-utils/power.d/harddrive false:

/usr/lib/pm-utils/power.d/harddrive false: success.
Running hook /usr/lib/pm-utils/power.d/intel-audio-powersave false:

/usr/lib/pm-utils/power.d/intel-audio-powersave false: success.
Running hook /usr/lib/pm-utils/power.d/journal-commit false:
Setting journal commit time for / to 0...Done.

/usr/lib/pm-utils/power.d/journal-commit false: success.
Running hook /usr/lib/pm-utils/power.d/laptop-mode false:
Laptop mode disabled.

/usr/lib/pm-utils/power.d/laptop-mode false: success.
Running hook /usr/lib/pm-utils/power.d/pcie_aspm false:

/usr/lib/pm-utils/power.d/pcie_aspm false: success.
Running hook /usr/lib/pm-utils/power.d/readahead false:
Setting readahead for /dev/disk/by-uuid/73a25b9f-ff05-4bee-a260-9ee41d42f55e to 256...Done.

/usr/lib/pm-utils/power.d/readahead false: success.
Running hook /usr/lib/pm-utils/power.d/sata_alpm false:

/usr/lib/pm-utils/power.d/sata_alpm false: success.
Running hook /usr/lib/pm-utils/power.d/sched-powersave false:
**sched policy powersave OFF

/usr/lib/pm-utils/power.d/sched-powersave false: success.
Running hook /usr/lib/pm-utils/power.d/wireless false:

/usr/lib/pm-utils/power.d/wireless false: success.
Running hook /usr/lib/pm-utils/power.d/xfs_buffer false:

/usr/lib/pm-utils/power.d/xfs_buffer false: success.

Initial commandline parameters:
Sun Feb 12 17:39:45 CST 2012: Running hooks for hibernate.
Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
Linux ylmf-desktop 2.6.38.3-ylmfos #1 SMP Thu Apr 21 11:07:44 CST 2011 i686 GNU/Linux
Module                  Size  Used by
nls_iso8859_1           3021  1
nls_cp437               4549  1
vfat                    6736  1
fat                    35884  1 vfat
usb_storage            25045  1
binfmt_misc             5006  1
pppoe                   6285  0
pppox                   1318  1 pppoe
pci_stub                 917  1
vboxpci                12487  0
vboxnetadp              5929  0
vboxnetflt             14356  0
vboxdrv               166448  3 vboxpci,vboxnetadp,vboxnetflt
snd_hda_codec_hdmi     17677  1
snd_hda_codec_realtek   207003  1
snd_hda_intel          17093  4
snd_hda_codec          54871  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
uvcvideo               46637  0
snd_hwdep               4246  1 snd_hda_codec
snd_pcm_oss            28454  0
snd_mixer_oss          10593  1 snd_pcm_oss
snd_pcm                50441  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy           1047  0
videodev               46168  1 uvcvideo
snd_seq_oss            21468  0
snd_seq_midi            3500  0
snd_rawmidi            13436  1 snd_seq_midi
snd_seq_midi_event      3975  2 snd_seq_oss,snd_seq_midi
snd_seq                36229  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              13404  3 snd_pcm,snd_seq
snd_seq_device          3939  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd                    36447  19 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
fglrx                2536289  219
i2c_nforce2             4189  0
k10temp                 2035  0
agpgart                19109  1 fglrx
soundcore               3672  1 snd
snd_page_alloc          5195  2 snd_hda_intel,snd_pcm
autofs4                17647  6
ext4                  250140  1
jbd2                   49791  1 ext4
fbcon                  29511  71
tileblit                1637  1 fbcon
font                    7008  1 fbcon
bitblit                 3520  1 fbcon
softcursor               885  1 bitblit
vga16fb                 8613  1
vgastate                5514  1 vga16fb
usbhid                 26570  0
hid                    52529  1 usbhid
sata_nv                15312  7
forcedeth              41017  0
pata_amd                7019  0
             total       used       free     shared    buffers     cached
Mem:       2063104     941368    1121736          0       3016     128120
-/+ buffers/cache:     810232    1252872
Swap:      2356956     594460    1762496

/usr/lib/pm-utils/sleep.d/00logging hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate:

/usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/01grub hibernate hibernate:

/usr/lib/pm-utils/sleep.d/01grub hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate:

/usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate:
Having NetworkManager put all interaces to sleep...Done.

/usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate:

/usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate:

/usr/lib/pm-utils/sleep.d/90clock hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate:

/usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95led hibernate hibernate:

/usr/lib/pm-utils/sleep.d/95led hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:
ATI Catalyst driver detected, not using quirks.

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:

/usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.
Sun Feb 12 17:39:47 CST 2012: performing hibernate
/usr/lib/pm-utils/pm-functions: line 316: echo: write error: No such device
Sun Feb 12 17:40:06 CST 2012: Awake.
Sun Feb 12 17:40:06 CST 2012: Running hooks for thaw
Running hook /usr/lib/pm-utils/sleep.d/99video thaw hibernate:

/usr/lib/pm-utils/sleep.d/99video thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate:

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95led thaw hibernate:

/usr/lib/pm-utils/sleep.d/95led thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate:

/usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock thaw hibernate:

/usr/lib/pm-utils/sleep.d/90clock thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules thaw hibernate:
Reloaded unloaded modules.

/usr/lib/pm-utils/sleep.d/75modules thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager thaw hibernate:
Having NetworkManager wake interfaces back up...Done.

/usr/lib/pm-utils/sleep.d/55NetworkManager thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth thaw hibernate:

/usr/lib/pm-utils/sleep.d/49bluetooth thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/01grub thaw hibernate:

/usr/lib/pm-utils/sleep.d/01grub thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave thaw hibernate:

/usr/lib/pm-utils/sleep.d/00powersave thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging thaw hibernate:

/usr/lib/pm-utils/sleep.d/00logging thaw hibernate: success.
Sun Feb 12 17:40:14 CST 2012: Finished.

my linux host is Ylmf OS    AMD Radeon HD 6450       .thanks .

Edit (tomreyn): Wrapped log output in [code] block.
« Last Edit: 12 February 2012, 16:12:49 by tomreyn »

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: linux host : pm: no enough memory
« Reply #1 on: 12 February 2012, 16:50:29 »
Hi, while there was a 3.6.0.0 version, there is no version 3.6.2 or 3.63 of MegaGlest, are you referring to versions 3.6.0.2 and 3.6.0.3 respectively?
If so, do you then mean to say that while you could run version 3.6.0.0 without any problems, versions 3.6.0.2 and 3.6.0.3 both cause the effect you describe:
Quote from: bhzu203
the screen will become black a short time, showing pm: no enough memory

Please also edit your first post and retitle the subject line (and thus the entire thread/forum topic) to include the version you are reporting a bug about - as discussed in READ THIS FIRST: How to report bugs

Somewhere in the middle of the chunk of what looks like a power management daemon log you posted (which is, i'm afraid, generally not useful to us or in finding the cause ofthe issue you are experiencing) there is also some output the free, uname -a and lsmod commands generate. At least the output generated by the free command could indeed get us somewhere.

I've never heard about Ylmf OS so far. According to it's website and other sources it is a modified Ubuntu, maintained by a chinese company. Your kernel version does not match that of the latest YLMF release. Which release do you have? Again, that's information we also ask you to provide in READ THIS FIRST: How to report bugs.

Back to the free output you provided:
Code: [Select]
             total       used       free     shared    buffers     cached
Mem:       2063104     941368    1121736          0       3016     128120
-/+ buffers/cache:     810232    1252872
Swap:      2356956     594460    1762496

According to this, when you ran this command, you had 1121736 bytes unallocated physical memory.  Was this while you were running MegaGlest or before/after you were running it? Please make sure you have read the minimum system requirements as discussed in the README file (which also ships with MegaGlest and is displayed during installation). I do not recommend to make your PC swap while running MegaGlest, it may cause you to time out of network games and moreover is no fun since it will reduce effective FPS.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·