View previous topic :: View next topic |
Author |
Message |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 15, 2005 10:14 am Post subject: [Modules] unload ?? [résolu] |
|
|
Chers amis
Je viens soumettre à votre sagacité un problème dont je ne trouve pas de solution ...
Pour installer vmware il est conseillé de valider la possibilité de décharger les modules. J'ai donc recompilé le kernel en tenant compte de la remarque :
Code: | lbr boot # diff config-2.6.10-r6-custom1 config-2.6.10-r6-custom2
4c4
< # Mon Feb 14 16:55:36 2005
---
> # Tue Feb 15 10:36:32 2005
51c51,52
< # CONFIG_MODULE_UNLOAD is not set
---
> CONFIG_MODULE_UNLOAD=y
> # CONFIG_MODULE_FORCE_UNLOAD is not set
55a57
> CONFIG_STOP_MACHINE=y
|
Et bien figurez-vous, que quand je boot sur le kernel custom2, la session de boot reste bloquée sur Quote: | coldplugging pci devices |
Ceci jusqu'à ce que j'éteigne violemment ...
Que faire ???
Last edited by lbr on Wed Feb 23, 2005 10:55 am; edited 2 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
LostControl l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/58145939140477f69386e9.jpg)
Joined: 02 Mar 2004 Posts: 885 Location: La Glane, Suisse
|
Posted: Tue Feb 15, 2005 10:25 am Post subject: |
|
|
Code: | $ grep CONFIG_STOP_MACHINE /usr/src/linux/.config
$ |
C'est quoi cette option ???
Ton problème ne vient pas du déchargement des modules possible à mon avis... _________________ http://www.jaqpot.net
http://www.fail2ban.org |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 15, 2005 10:34 am Post subject: |
|
|
Je viens de fairre qq essais : quand tu selectionnes Code: | loadable module support/ module unloading | cette ligne (CONFIG_STOP_MACHINE=y) apparait dans le .config ![Confused :?](images/smiles/icon_confused.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cylgalad Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 18 Apr 2003 Posts: 1327 Location: France
|
Posted: Tue Feb 15, 2005 11:00 am Post subject: |
|
|
Pas avec un noyau à la vanille en tout cas ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 15, 2005 11:04 am Post subject: |
|
|
possible : j'ai le gentoo-dev-sources ... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Polo l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1278817250425e38f438099.png)
Joined: 27 Jan 2004 Posts: 649 Location: Angers, France
|
Posted: Tue Feb 15, 2005 11:33 am Post subject: |
|
|
moi aussi j'ai le gentoo-dev-source, et cette ligne n'apparait pas dans mon .config....
j'ai la version 2.6.10-r6 .... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 15, 2005 11:35 am Post subject: |
|
|
Mais elle n'est présente dans .config que si loadable module support/ module unloading est sélectionnée : c'est aussi ton cas ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Polo l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1278817250425e38f438099.png)
Joined: 27 Jan 2004 Posts: 649 Location: Angers, France
|
Posted: Tue Feb 15, 2005 11:43 am Post subject: |
|
|
Code: | paul@portable paul $ zgrep MODULE /proc/config.gz
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODULE_SRCVERSION_ALL is not set | oui j'ai le module unloading... c'est quand meme pratique quelquefois (pas obligé de rebooter quand tu veux décharger un module).... j'avais fait cette *erreur* une fois. depuis j'ai retenu la lecon ![Razz :P](images/smiles/icon_razz.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 15, 2005 11:58 am Post subject: |
|
|
mais d'ou vient-il ce CONFIG_STOP_MACHINE ? ![Question :?:](images/smiles/icon_question.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kernelsensei Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/21126704545e4a5f9ae5c9.jpg)
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Tue Feb 15, 2005 12:28 pm Post subject: |
|
|
moi aussi j'ai CONFIG_STOP_MACHINE=y et il apparait quand j'active le module unloading !
si vous voulez des infos, ya ca :
/usr/src/linux/kernel/stop_machine.c
et ca aussi
Code: | config STOP_MACHINE
bool
default y
depends on (SMP && MODULE_UNLOAD) || HOTPLUG_CPU
help
Need stop_machine() primitive.
|
_________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Polo l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1278817250425e38f438099.png)
Joined: 27 Jan 2004 Posts: 649 Location: Angers, France
|
Posted: Tue Feb 15, 2005 12:30 pm Post subject: |
|
|
ah bah voila... je commencais a me douter que ca venait de l'architecture de la machine.....
vous etes sur P4 ht ? amd64 ? ou autre? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 15, 2005 12:35 pm Post subject: |
|
|
P4 HT ...
Mais penses-tu que ce soit ca qui empeche la séquence de boot d'aller au dela de "coldplugging pci devices" ??? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 15, 2005 1:08 pm Post subject: |
|
|
kernel_sensei wrote: | moi aussi j'ai CONFIG_STOP_MACHINE=y et il apparait quand j'active le module unloading ! |
et ca t'empêche de booter (j'imagine que non
Donc mon pb est ailleurs mais où ????
@kernel_sensei : t'as coldplug ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kernelsensei Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/21126704545e4a5f9ae5c9.jpg)
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Tue Feb 15, 2005 1:12 pm Post subject: |
|
|
lbr wrote: | kernel_sensei wrote: | moi aussi j'ai CONFIG_STOP_MACHINE=y et il apparait quand j'active le module unloading ! |
et ca t'empêche de booter (j'imagine que non
Donc mon pb est ailleurs mais où ????
@kernel_sensei : t'as coldplug ? |
j'ai ni coldplug, ni hotplug de lancé ! _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 15, 2005 1:48 pm Post subject: |
|
|
En enlevant coldplug et hotplug du runlevel : ca va plus loin .... mais ca s'arrète à loading runlevel 3 ...
Ma seule solution est alors de ... rebooter !
Boudiou, ca commence à me chauffer cette affaire !
la seule différence entre config qui marche et celle qui ne marche pas c'est la possibilité de unloader les modules !
Je ne suis quand même pas le seul à vouloir un kernel 2.6.10 avec la possibilité de rmmod et du coldplug/hotplug !!!
J'ai beau parcourir google en tout sens : rien, niet, nista, nada, ...
Une idée ?
j'avais oublié : nothing ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
LostControl l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/58145939140477f69386e9.jpg)
Joined: 02 Mar 2004 Posts: 885 Location: La Glane, Suisse
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 15, 2005 2:01 pm Post subject: |
|
|
/etc/conf.d/rc wrote: |
# /etc/conf.d/rc:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/rc,v 1.13 2004/02/26 18:01:29 azarah Exp $
#
# Global config file for the Gentoo RC System
#
# NOTE: most of these are not in use yet!!
#
# This is the amount of tty's used in most of the rc-scripts (like
# consolefont, numlock, etc
RC_TTY_NUMBER=11
# Set to "yes" if you want the rc system to try and start services
# in parallel for slight speed improvement.
RC_PARALLEL_STARTUP="no"
# Set to "yes" if the default behaviour of at least one net.*
# service starting beside net.lo is NOT enouth to consider
# the 'net' dependency up and running.
RC_NET_STRICT_CHECKING="no"
# Set to "yes" if you want to save /dev to a tarball on shutdown
# and restore it on startup. This is useful if you have a lot of
# custom device nodes that udev do not handle/know about.
# (ONLY used by UDEV enabled systems!)
RC_DEVICE_TARBALL="yes"
# Set to "yes" if you want devfsd to start upon bootup. This is
# the default for Gentoo.
# Set to "no" only if you understand the full implications. A
# number of files may need to be altered (i.e. /etc/inittab,
# /etc/fstab, etc.).
# Also note that it does _NOT_ start for UDEV enabled systems,
# even if RC_DEVFSD_STARTUP="yes" ...
RC_DEVFSD_STARTUP="yes"
# Set to "yes" if stop-daemon() should always retry killing the
# service if it fails the first time.
RC_RETRY_KILL="yes"
# Set the amount of seconds stop-daemon() should wait between
# retries. $RC_RETRY_KILL should be set to "yes".
RC_RETRY_TIMEOUT=1
# Set the amount of times stop-daemon() should try to kill
# a service before giving up. $RC_RETRY_KILL should be set to "yes".
RC_RETRY_COUNT=5
# Set to "yes" if stop-daemon() should fail if the service
# is marked as started, but not actually running on stop.
RC_FAIL_ON_ZOMBIE="no"
#
# Internal configuration variables
#
# NB: These are for advanced users, and you should really
# know what you are doing before changing them!
#
# rc-scripts dep-cache directory
#
# NOTE: Do not remove the next line, as its needed by the baselayout ebuild!
#
# svcdir="/var/lib/init.d"
svcdir="/var/lib/init.d"
# Should we mount $svcdir as a tmpfs or ramfs for some speed
# increase for slower machines, or for the more extreme setups ?
svcmount="no"
# FS type that should be used for $svcdir. Note that you need
# $svcmount above set to "yes" for this to work ... Currently
# "tmpfs" and "ramfs" are supported, with "tmpfs" the default.
svcfstype="tmpfs"
# Size of $svcdir in KB
svcsize=2048
|
no à la rubrique en question, donc .... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
LostControl l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/58145939140477f69386e9.jpg)
Joined: 02 Mar 2004 Posts: 885 Location: La Glane, Suisse
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 15, 2005 2:05 pm Post subject: |
|
|
ben, j'aurais bien aimé que tu gagnes ![Wink ;)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 22, 2005 1:55 pm Post subject: |
|
|
y'a rien dans google sur le sujet : à croire que je suis maudit ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TGL Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
Joined: 02 Jun 2002 Posts: 1978 Location: Rennes, France
|
Posted: Tue Feb 22, 2005 2:22 pm Post subject: |
|
|
Par curiosité, est-ce que tu peux nous faire un "lsmod" de quand tu es correctement booté avec le noyau qui marche ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 22, 2005 2:33 pm Post subject: |
|
|
avec plaisir : Code: | lbr etc # lsmod
Module Size Used by
ub 16284 -
sr_mod 15140 -
vmnet 29212 -
vmmon 168364 -
parport_pc 26180 -
lp 11020 -
parport 34120 -
ohci_hcd 20744 -
natsemi 26592 -
bcm5700 137932 -
ahci 9604 -
uhci_hcd 31888 -
nvidia 3465692 -
|
avec le kernel qui n'a pas unload à y ... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TGL Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
Joined: 02 Jun 2002 Posts: 1978 Location: Rennes, France
|
Posted: Tue Feb 22, 2005 3:00 pm Post subject: |
|
|
Ma très vague hypothèse vachement hypothétique serait que le noyau tente pendant le boot un nettoyage automatique d'un module que justement c'est pas une bonne idée de le virer. Pour vérifier un peu ça, je suggèrerai que tu refasses des essais avec plus de trucs en dur. Ça risque d'être un peu chiant ceci dit, mais bon, je vois pas trop d'autre piste pour l'instant. Perso je procederais dans cet ordre:
- déjà, un essai sans le module nvidia, par acquis de conscience (toujours commencer par soupçonner ce qui est proprio...) ;
- ensuite, un essai avec BLK_DEV_UB ("Low Performance USB Block driver") désactivé : je sais que ce module est un peu conflictuel avec tout ce qui est usb-storage, et je me demande si il pourrait pas aussi l'être avec les modules SATA ;
- ensuite, un essai avec tout ce qui est SATA et USB en dur (les uhci/ohci/ahci, etc.). Là de deux choses l'une :
* si ça plante encore, c'est probablement que mon hypothèse était complètement bidon, parceque quand même, il restera pas grand chose de critique...
* si ça plante plus, faudrait raffiner un peu, genre remettre l'USB en module mais garder le SATA en dur, etc. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lbr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Feb 22, 2005 3:07 pm Post subject: |
|
|
Question un peu con : à chaque compil je passe monsieur propre ? (make mrproper). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TGL Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
Joined: 02 Jun 2002 Posts: 1978 Location: Rennes, France
|
Posted: Tue Feb 22, 2005 3:08 pm Post subject: |
|
|
Nan, pas la peine en principe. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|