[SOLVED] Second CPU not detected

You have a problem with Salix? Post here and we'll do what we can to help.
Augeas
Posts: 12
Joined: 14. Sep 2012, 20:25

[SOLVED] Second CPU not detected

Post by Augeas »

Hi everyone,

I just installed Salix recently on my laptop, everything is great! Im loving this distro. But just now I saw a problem, my second CPU (CPU1) is not being detected nor used. I tried searching for solutions on this forum but I could not find an answer for this.
I works awesome with just 1 cpu but would be great to use all that my laptop got right?

Can you guys help me?
Last edited by Augeas on 17. Sep 2012, 23:58, edited 1 time in total.
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: Second CPU not detected

Post by gapan »

You have installed the wrong kernel. No idea why you would do such thing. You need the smp kernel.
Image
Image
Augeas
Posts: 12
Joined: 14. Sep 2012, 20:25

Re: Second CPU not detected

Post by Augeas »

I just Installed with the KDE version Install disk, never saw any options about the kernel, not that I remember at least.
Is it possible to change now?
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Second CPU not detected

Post by mimosa »

To find out which kernel you have, in a terminal:

Code: Select all

ls /var/log/packages/ | grep kernel
or indeed:

Code: Select all

ls /boot | grep huge
It seems odd you should have the wrong one, if you just did a straightforward install. So maybe there's some other reason. You could try:

Code: Select all

inxi -C


just to check your hardware.

(You may need to install inxi.)

How do you know only one CPU is being used?
Augeas
Posts: 12
Joined: 14. Sep 2012, 20:25

Re: Second CPU not detected

Post by Augeas »

In system monitor just show me 1 cpu, and it gets load pretty fast, thats why I think just 1 is being used

Well here are the codes:

Code: Select all

root[cairo-dock]# ls /var/log/packages/ | grep kernel
kernel-firmware-2.6.37.6-noarch-2
kernel-headers-2.6.37.6_smp-x86-2
kernel-huge-2.6.37.6-i486-2
kernel-modules-2.6.37.6-i486-2
root[cairo-dock]# ls /boot | grep huge
System.map-huge-2.6.37.6
config-huge-2.6.37.6
vmlinuz-huge-2.6.37.6
root[cairo-dock]# inxi -C
CPU:       Single core Intel Core2 Duo P8700 (-UP-) cache 3072 KB flags (lm sse sse2 sse3 sse4_1 ssse3 vmx) clocked at 800.00 MHz
It says its "single core" but as you can see it is duo and in other distros that I used to use like fedora showed me 2

in advance thank you for your help
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Second CPU not detected

Post by mimosa »

I'm afraid my understanding of the hardware is limited, but maybe someone else can help more. However, maybe the other core is "logical", that is, not really a second processor?

However, you could try installing the smp kernel:

http://www.salixos.org/forum/viewtopic.php?f=24&t=3886

If you use lilosetup.py (recommended) then IIRC you will need to edit the config file to add an extra entry for the new kernel. Or maybe it will be detected automatically.

Then try each in turn and see.
Augeas
Posts: 12
Joined: 14. Sep 2012, 20:25

Re: Second CPU not detected

Post by Augeas »

I dont really understand what you want to me to do...

Code: Select all

root[~]# ls /lib/modules
2.6.37.6  2.6.37.6-smp
this is what I have in modules, and I found the lilosetup.py but dunno what to do with it or what modify in it.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Second CPU not detected

Post by mimosa »

First install the smp kernel packages (see the thread linked to above). Then run lilosetup

Code: Select all

#lilosetup.py
Then once you have set up the configuration, you probably need to "Edit configuration" to add an extra entry for the other kernel. You'll see what I mean better when you run the lilosetup tool.
Augeas
Posts: 12
Joined: 14. Sep 2012, 20:25

Re: Second CPU not detected

Post by Augeas »

But it fails

Code: Select all

# lilosetup.py 
No protocol specified
/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
/usr/sbin/lilosetup.py:504: Warning: invalid (NULL) pointer instance
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gtk_window_set_screen: assertion `GDK_IS_SCREEN (screen)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_context_set_font_description: assertion `context != NULL' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_context_set_base_dir: assertion `context != NULL' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_context_set_language: assertion `context != NULL' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_layout_new: assertion `context != NULL' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_layout_set_text: assertion `layout != NULL' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_layout_set_attributes: assertion `layout != NULL' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_layout_set_alignment: assertion `layout != NULL' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_layout_set_ellipsize: assertion `PANGO_IS_LAYOUT (layout)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_layout_set_single_paragraph_mode: assertion `PANGO_IS_LAYOUT (layout)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_layout_set_wrap: assertion `PANGO_IS_LAYOUT (layout)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_layout_set_width: assertion `layout != NULL' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_layout_get_extents: assertion `layout != NULL' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gtk_icon_size_lookup_for_settings: assertion `GTK_IS_SETTINGS (settings)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: Invalid icon size 4

  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: Error loading theme icon 'system-run' for stock: 
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: gtkstyle.c:2358: invalid icon size '4'
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gtk_style_render_icon: assertion `pixbuf != NULL' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: Warning: g_object_ref: assertion `G_IS_OBJECT (object)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: PangoWarning: pango_layout_get_pixel_extents: assertion `PANGO_IS_LAYOUT (layout)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: Invalid icon size 1

  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: Error loading theme icon 'gtk-no' for stock: 
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: gtkstyle.c:2358: invalid icon size '1'
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: Error loading theme icon 'gtk-yes' for stock: 
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: Error loading theme icon 'go-up' for stock: 
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: Error loading theme icon 'go-down' for stock: 
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: Error loading theme icon 'edit-clear' for stock: 
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: Error loading theme icon 'gtk-edit' for stock: 
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gdk_display_get_pointer: assertion `GDK_IS_DISPLAY (display)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gdk_screen_get_n_monitors: assertion `GDK_IS_SCREEN (screen)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gdk_screen_get_monitor_geometry: assertion `GDK_IS_SCREEN (screen)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: gtk_widget_size_allocate(): attempt to allocate widget with width -1052585 and height -1195377
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: gtk_widget_size_allocate(): attempt to allocate widget with width -1052581 and height 0
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: gtk_widget_size_allocate(): attempt to allocate widget with width -1052581 and height 1
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gdk_colormap_get_visual: assertion `GDK_IS_COLORMAP (colormap)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
/usr/sbin/lilosetup.py:504: GtkWarning: IA__gdk_window_new: assertion `GDK_IS_WINDOW (parent)' failed
  builder.add_from_file("/usr/share/lilosetup/lilosetup.glade")
Segmentation fault
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Second CPU not detected

Post by mimosa »

Maybe you need to call it from the graphical menu - I think it's under System. Or try

Code: Select all

#kdesu lilosetup.py
This is uncannily reminiscent of some trouble I just had fiddling with salix-codecs-installer.
Post Reply