Re: Suspend 2 merge: 4/51: Get module list.

Nigel Cunningham
2004-11-27T04:17:48Z

Hi.

On Fri, 2004-11-26 at 03:56, Pavel Machek wrote:
> Hi!
>
> > This provides access to the list of loaded modules for suspend's
> > debugging output. When a cycle finishes, suspend outputs something the
> > following:
> >
> > > Please include the following information in bug reports:
> > > - SUSPEND core : 2.1.5.7
> > > - Kernel Version : 2.6.9
> > > - Compiler vers. : 3.3
> > > - Modules loaded : tuner bttv videodev snd_seq_oss snd_seq_midi_event
> > > snd_seq snd_pcm_oss snd_mixer_oss snd_intel8x0 snd_ac97_codec snd_pcm
> > > snd_timer snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device
> > > snd soundcore visor usbserial usblp joydev evdev usbmouse usbhid
> > > uhci_hcd usbcore ppp_deflate zlib_deflate zlib_inflate bsd_comp
> > > ipt_LOG ipt_state ipt_MASQUERADE iptable_nat ip_conntrack
> > > ipt_multiport ipt_REJECT iptable_filter ip_tables ppp_async
> > > ppp_generic slhc crc_ccitt video_buf v4l2_common btcx_risc Win4Lin
> > > mki_adapter radeon agpgart parport_pc lp parport sg ide_cd sr_mod
> > > cdrom floppy af_packet e1000 loop dm_mod tsdev suspend_bootsplash
> > > suspend_text suspend_swap suspend_block_io suspend_lzf suspend_core
> > > - Attempt number : 9
> > > - Parameters : 0 2304 32768 1 0 4096 5
> > > - Limits : 261680 pages RAM. Initial boot: 252677.
> > > - Overall expected compression percentage: 0.
> > > - LZF Compressor enabled.
> > > Compressed 922112000 bytes into 437892038 (52 percent compression).
> > > - Swapwriter active.
> > > Swap available for image: 294868 pages.
> > > - Debugging compiled in.
> > > - Preemptive kernel.
> > > - SMP kernel.
> > > - Highmem Support.
> > > - I/O speed: Write 72 MB/s, Read 119 MB/s.
> >
> > Including the modules loaded is very helpful for debugging problems.
>
> It might be usefull as an add-on patch when people are actually debugging it,
> but I do not think it is needed for mainline. You can just do lsmod before suspend...

Yes. It's still pretty helpful, but not as much as it has been in the
past. We're almost at the point where we can automatically say "Have you
got USB compiled in? Compile it as modules. Have you got USB modules
loaded? Unload them and reload after suspending. Have you got DRI
support loaded? Depending on chipset, do X, Y, or Z." That deals with
the vast majority of freezes.

Regards,

Nigel
--
Nigel Cunningham
Pastoral Worker
Christian Reformed Church of Tuggeranong
PO Box 1004, Tuggeranong, ACT 2901

You see, at just the right time, when we were still powerless, Christ
died for the ungodly. -- Romans 5:6