Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Modules] unload ?? [résolu]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 15, 2005 10:14 am    Post subject: [Modules] unload ?? [résolu] Reply with quote

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
View user's profile Send private message
LostControl
l33t
l33t


Joined: 02 Mar 2004
Posts: 885
Location: La Glane, Suisse

PostPosted: Tue Feb 15, 2005 10:25 am    Post subject: Reply with quote

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
View user's profile Send private message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 15, 2005 10:34 am    Post subject: Reply with quote

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 :?
Back to top
View user's profile Send private message
cylgalad
Veteran
Veteran


Joined: 18 Apr 2003
Posts: 1327
Location: France

PostPosted: Tue Feb 15, 2005 11:00 am    Post subject: Reply with quote

Pas avec un noyau à la vanille en tout cas :)
Back to top
View user's profile Send private message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 15, 2005 11:04 am    Post subject: Reply with quote

possible : j'ai le gentoo-dev-sources ...
Back to top
View user's profile Send private message
Polo
l33t
l33t


Joined: 27 Jan 2004
Posts: 649
Location: Angers, France

PostPosted: Tue Feb 15, 2005 11:33 am    Post subject: Reply with quote

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
View user's profile Send private message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 15, 2005 11:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Polo
l33t
l33t


Joined: 27 Jan 2004
Posts: 649
Location: Angers, France

PostPosted: Tue Feb 15, 2005 11:43 am    Post subject: Reply with quote

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 :P
Back to top
View user's profile Send private message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 15, 2005 11:58 am    Post subject: Reply with quote

:?: mais d'ou vient-il ce CONFIG_STOP_MACHINE ? :?:
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Tue Feb 15, 2005 12:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Polo
l33t
l33t


Joined: 27 Jan 2004
Posts: 649
Location: Angers, France

PostPosted: Tue Feb 15, 2005 12:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 15, 2005 12:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 15, 2005 1:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Tue Feb 15, 2005 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 15, 2005 1:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
LostControl
l33t
l33t


Joined: 02 Mar 2004
Posts: 885
Location: La Glane, Suisse

PostPosted: Tue Feb 15, 2005 1:56 pm    Post subject: Reply with quote

Dans "/etc/conf.d/rc", vérifie que tu as ça :

Code:
RC_PARALLEL_STARTUP="no"


A+
_________________
http://www.jaqpot.net
http://www.fail2ban.org
Back to top
View user's profile Send private message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 15, 2005 2:01 pm    Post subject: Reply with quote

/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
View user's profile Send private message
LostControl
l33t
l33t


Joined: 02 Mar 2004
Posts: 885
Location: La Glane, Suisse

PostPosted: Tue Feb 15, 2005 2:04 pm    Post subject: Reply with quote

lbr wrote:
no à la rubrique en question, donc ....


Merde :( J'aurais presque parié que c'était ça !
_________________
http://www.jaqpot.net
http://www.fail2ban.org
Back to top
View user's profile Send private message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 15, 2005 2:05 pm    Post subject: Reply with quote

ben, j'aurais bien aimé que tu gagnes ;)
Back to top
View user's profile Send private message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 22, 2005 1:55 pm    Post subject: Reply with quote

y'a rien dans google sur le sujet : à croire que je suis maudit !
Back to top
View user's profile Send private message
TGL
Bodhisattva
Bodhisattva


Joined: 02 Jun 2002
Posts: 1978
Location: Rennes, France

PostPosted: Tue Feb 22, 2005 2:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 22, 2005 2:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
TGL
Bodhisattva
Bodhisattva


Joined: 02 Jun 2002
Posts: 1978
Location: Rennes, France

PostPosted: Tue Feb 22, 2005 3:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
lbr
Guru
Guru


Joined: 05 Apr 2004
Posts: 503
Location: Paris

PostPosted: Tue Feb 22, 2005 3:07 pm    Post subject: Reply with quote

Question un peu con : à chaque compil je passe monsieur propre ? (make mrproper).
Back to top
View user's profile Send private message
TGL
Bodhisattva
Bodhisattva


Joined: 02 Jun 2002
Posts: 1978
Location: Rennes, France

PostPosted: Tue Feb 22, 2005 3:08 pm    Post subject: Reply with quote

Nan, pas la peine en principe.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum