LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-23-2011, 10:52 PM   #1
sethusubbiah
Member
 
Registered: Jul 2010
Posts: 36

Rep: Reputation: 2
Frequency scaling not working


Hi ,

I am using Intel Xeon X 3440 processor. The processor has 11 frequency steps to chose from. I have used cpufreq-selector for choosing a frequency and it worked fine. But, all of a sudden it stops working
out of the 11 steps i can change to only 2 frequencies and rest fail to work. I am clueless as to why it stopped working suddenly. If someone can help me with some information , it will be really great. Thanks a lot !

- Sethu
 
Old 04-24-2011, 08:01 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Show contents of your /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies if you have one, and output of dmesg.
 
Old 04-24-2011, 09:20 AM   #3
sethusubbiah
Member
 
Registered: Jul 2010
Posts: 36

Original Poster
Rep: Reputation: 2
[root@hgcc04 cpufreq]# cat scaling_available_frequencies
2528000 2527000 2394000 2261000 2128000 1995000 1862000 1729000 1596000 1463000 1330000 1197000

These are the 11 frequency steps.



dmesg output :

Bootdata ok (command line is ro root=/dev/VolGroup00/LogVol00 rhgb quiet)
Linux version 2.6.18-194.11.3.el5xen (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Mon Aug 30 16:55:32 EDT 2010
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 00000001f1786000 (usable)
On node 0 totalpages: 2037638
DMA zone: 2037638 pages, LIFO batch:31
DMI 2.6 present.
ACPI: RSDP (v002 DELL ) @ 0x00000000000f0b40
ACPI: XSDT (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000000f0c40
ACPI: FADT (v003 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6c3bb4
ACPI: MADT (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6c3478
ACPI: SPCR (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6c35cc
ACPI: HPET (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6c3620
ACPI: (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6c365c
>>> ERROR: Invalid checksum
ACPI: MCFG (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6c3850
ACPI: WD__ (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6c3890
ACPI: SLIC (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6c39c8
ACPI: ERST (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6b2b0c
ACPI: HEST (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6b2d7c
ACPI: BERT (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6b298c
ACPI: EINJ (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6b29bc
ACPI: TCPA (v002 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000bf6c3b4c
ACPI: SSDT (v001 INTEL PPM RCM 0x80000001 INTL 0x20061109) @ 0x00000000bf6c7000
ACPI: DSDT (v001 DELL PE_SC3 0x00000001 INTL 0x20050624) @ 0x0000000000000000
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x22] disabled)
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x23] disabled)
ACPI: LAPIC (acpi_id[0x05] lapic_id[0x24] disabled)
ACPI: LAPIC (acpi_id[0x06] lapic_id[0x25] disabled)
ACPI: LAPIC (acpi_id[0x07] lapic_id[0x26] disabled)
ACPI: LAPIC (acpi_id[0x08] lapic_id[0x27] disabled)
ACPI: LAPIC (acpi_id[0x09] lapic_id[0x28] disabled)
ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x29] disabled)
ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x2a] disabled)
ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x2b] disabled)
ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x2c] disabled)
ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x2d] disabled)
ACPI: LAPIC (acpi_id[0x0f] lapic_id[0x2e] disabled)
ACPI: LAPIC (acpi_id[0x10] lapic_id[0x2f] disabled)
ACPI: LAPIC (acpi_id[0x11] lapic_id[0x30] disabled)
ACPI: LAPIC (acpi_id[0x12] lapic_id[0x31] disabled)
ACPI: LAPIC (acpi_id[0x13] lapic_id[0x32] disabled)
ACPI: LAPIC (acpi_id[0x14] lapic_id[0x33] disabled)
ACPI: LAPIC (acpi_id[0x15] lapic_id[0x34] disabled)
ACPI: LAPIC (acpi_id[0x16] lapic_id[0x35] disabled)
ACPI: LAPIC (acpi_id[0x17] lapic_id[0x36] disabled)
ACPI: LAPIC (acpi_id[0x18] lapic_id[0x37] disabled)
ACPI: LAPIC (acpi_id[0x19] lapic_id[0x38] disabled)
ACPI: LAPIC (acpi_id[0x1a] lapic_id[0x39] disabled)
ACPI: LAPIC (acpi_id[0x1b] lapic_id[0x3a] disabled)
ACPI: LAPIC (acpi_id[0x1c] lapic_id[0x3b] disabled)
ACPI: LAPIC (acpi_id[0x1d] lapic_id[0x3c] disabled)
ACPI: LAPIC (acpi_id[0x1e] lapic_id[0x3d] disabled)
ACPI: LAPIC (acpi_id[0x1f] lapic_id[0x3e] disabled)
ACPI: LAPIC (acpi_id[0x20] lapic_id[0x3f] disabled)
ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
ACPI: IOAPIC (id[0x00] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Setting APIC routing to xen
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at c2000000 (gap: c0000000:20000000)
Built 1 zonelists. Total pages: 2037638
Kernel command line: ro root=/dev/VolGroup00/LogVol00 rhgb quiet
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
Xen reported: 2527.062 MHz processor.
Console: colour VGA+ 80x25
Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
Software IO TLB enabled:
Aperture: 64 megabytes
Kernel range: 0xffff88000ab77000 - 0xffff88000eb77000
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Memory: 7905652k/8150552k available (2513k kernel code, 236088k reserved, 1394k data, 184k init)
Calibrating delay using timer specific routine.. 6319.14 BogoMIPS (lpj=12638282)
Security Framework v1.0.0 initialized
SELinux: Initializing.
SELinux: Starting in permissive mode
selinux_register_security: Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 256
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
(SMP-)alternatives turned off
ACPI: Core revision 20060707
Brought up 2 CPUs
sizeof(vma)=168 bytes
sizeof(page)=56 bytes
sizeof(inode)=560 bytes
sizeof(dentry)=216 bytes
sizeof(ext3inode)=760 bytes
sizeof(buffer_head)=96 bytes
sizeof(skbuff)=248 bytes
Initializing CPU#1
migration_cost=16
checking if image is initramfs... it is
Grant table initialized
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Not using MMCONFIG.
PCI: Using configuration type 1
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.LYD0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.COMP._PRT]
ACPI: PCI Interrupt Link [LK00] (IRQs 3 4 5 6 7 10 11 14 *15)
ACPI: PCI Interrupt Link [LK01] (IRQs 3 4 5 6 7 *10 11 14 15)
ACPI: PCI Interrupt Link [LK02] (IRQs 3 4 5 6 7 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LK03] (IRQs 3 4 5 *6 7 10 11 14 15)
ACPI: PCI Interrupt Link [LK04] (IRQs 3 4 5 6 7 10 *11 14 15)
ACPI: PCI Interrupt Link [LK05] (IRQs 3 4 5 6 7 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LK06] (IRQs 3 4 5 6 7 10 11 *14 15)
ACPI: PCI Interrupt Link [LK07] (IRQs 3 4 5 6 7 10 11 14 15) *0, disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 13 devices
xen_mem: Initialising balloon driver.
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
NetLabel: Initializing
NetLabel: domain hash size = 128
NetLabel: protocols = UNLABELED CIPSOv4
NetLabel: unlabeled traffic allowed by default
pnp: 00:07: ioport range 0x800-0x87f could not be reserved
pnp: 00:07: ioport range 0x880-0x8ff has been reserved
pnp: 00:07: ioport range 0x900-0x91f has been reserved
pnp: 00:07: ioport range 0x920-0x923 has been reserved
pnp: 00:07: ioport range 0x924-0x924 has been reserved
pnp: 00:07: ioport range 0xca0-0xca7 has been reserved
pnp: 00:07: ioport range 0xca9-0xcab has been reserved
pnp: 00:07: ioport range 0xcad-0xcaf has been reserved
pnp: 00:08: ioport range 0xca8-0xca8 has been reserved
pnp: 00:08: ioport range 0xcac-0xcac has been reserved
PCI: Bridge: 0000:00:03.0
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.0
IO window: disabled.
MEM window: da000000-ddffffff
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1e.0
IO window: disabled.
MEM window: de000000-deffffff
PREFETCH window 0x00000000d9800000-0x00000000d9ffffff
GSI 16 sharing vector 0xA8 and IRQ 16
ACPI: PCI Interrupt 0000:00:03.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:03.0 to 64
PCI: Setting latency timer of device 0000:00:1c.0 to 64
PCI: Setting latency timer of device 0000:00:1e.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 262144 (order: 9, 2097152 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
audit: initializing netlink socket (disabled)
type=2000 audit(1303597356.330:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
SELinux: Registering netfilter hooks
Initializing Cryptographic API
alg: No test for crc32c (crc32c-generic)
ksign: Installing public key data
Loading keyring
- Added public key 9BCE751F598F1880
- User ID: CentOS (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Boot video device is 0000:03:03.0
PCI: Setting latency timer of device 0000:00:03.0 to 64
PCI: Setting latency timer of device 0000:00:1c.0 to 64
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
Real Time Clock Driver v1.12ac
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
brd: module loaded
Xen virtual console successfully installed as ttyS0
Event-channel device installed.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
Probing IDE interface ide1...
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
Initalizing network drop monitor service
Write protecting the kernel read-only data: 483k
GSI 17 sharing vector 0xC0 and IRQ 17
ACPI: PCI Interrupt 0000:00:1a.0[A] -> GSI 22 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1a.0 to 64
ehci_hcd 0000:00:1a.0: EHCI Host Controller
ehci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1a.0: debug port 2
PCI: cache line size of 32 is not supported by device 0000:00:1a.0
ehci_hcd 0000:00:1a.0: irq 17, io mem 0xdf0fa000
ehci_hcd 0000:00:1a.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 22 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1d.0 to 64
ehci_hcd 0000:00:1d.0: EHCI Host Controller
ehci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
ehci_hcd 0000:00:1d.0: debug port 2
PCI: cache line size of 32 is not supported by device 0000:00:1d.0
ehci_hcd 0000:00:1d.0: irq 17, io mem 0xdf0fc000
ehci_hcd 0000:00:1d.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v3.0
SCSI subsystem initialized
libata version 3.00 loaded.
ahci 0000:00:1f.2: version 3.0
GSI 18 sharing vector 0xC8 and IRQ 18
ACPI: PCI Interrupt 0000:00:1f.2[A] -> GSI 20 (level, low) -> IRQ 18
usb 1-1: new high speed USB device using ehci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 6 ports detected
usb 2-1: new high speed USB device using ehci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 8 ports detected
ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 3 Gbps 0x3f impl SATA mode
ahci 0000:00:1f.2: flags: 64bit ncq sntf pm led clo pmp pio slum part ems
PCI: Setting latency timer of device 0000:00:1f.2 to 64
scsi0 : ahci
scsi1 : ahci
scsi2 : ahci
scsi3 : ahci
scsi4 : ahci
scsi5 : ahci
ata1: SATA max UDMA/133 abar m2048@0xdf0fe000 port 0xdf0fe100 irq 253
ata2: SATA max UDMA/133 abar m2048@0xdf0fe000 port 0xdf0fe180 irq 253
ata3: SATA max UDMA/133 abar m2048@0xdf0fe000 port 0xdf0fe200 irq 253
ata4: SATA max UDMA/133 abar m2048@0xdf0fe000 port 0xdf0fe280 irq 253
ata5: SATA max UDMA/133 abar m2048@0xdf0fe000 port 0xdf0fe300 irq 253
ata6: SATA max UDMA/133 abar m2048@0xdf0fe000 port 0xdf0fe380 irq 253
usb 2-1.1: new full speed USB device using ehci_hcd and address 3
usb 2-1.1: configuration #1 chosen from 1 choice
usb 2-1.5: new high speed USB device using ehci_hcd and address 4
usb 2-1.5: configuration #1 chosen from 1 choice
hub 2-1.5:1.0: USB hub found
hub 2-1.5:1.0: 4 ports detected
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-8: WDC WD2502ABYS-18B7A0, 02.03B05, max UDMA/133
ata1.00: 488281250 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
ata2: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata4.00: ATAPI: TEAC DVD-ROM DV-28SW, R.2A, max UDMA/100, ATAPI AN
ata4.00: configured for UDMA/100
ata5: SATA link down (SStatus 0 SControl 300)
ata6: SATA link down (SStatus 0 SControl 300)
Vendor: ATA Model: WDC WD2502ABYS-1 Rev: 02.0
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 488281250 512-byte hdwr sectors (250000 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 488281250 512-byte hdwr sectors (250000 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda3 sda4 < sda5 >
sd 0:0:0:0: Attached scsi disk sda
Vendor: TEAC Model: DVD-ROM DV-28SW Rev: R.2A
Type: CD-ROM ANSI SCSI revision: 05
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised: dm-devel@redhat.com
device-mapper: dm-raid45: initialized v0.2594l
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
SELinux: Disabled at runtime.
SELinux: Unregistering netfilter hooks
type=1404 audit(1303597381.911:2): selinux=0 auid=4294967295 ses=4294967295
input: PC Speaker as /class/input/input0
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
sd 0:0:0:0: Attached scsi generic sg0 type 0
scsi 3:0:0:0: Attached scsi generic sg1 type 5
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.0.2 (Aug 21, 2009)
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:02:00.0 to 64
eth0: Broadcom NetXtreme II BCM5716 1000Base-T (C0) PCI Express found at mem da000000, IRQ 16, node addr b8ac6f815615
GSI 19 sharing vector 0xD8 and IRQ 19
ACPI: PCI Interrupt 0000:02:00.1[B] -> GSI 17 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:02:00.1 to 64
eth1: Broadcom NetXtreme II BCM5716 1000Base-T (C0) PCI Express found at mem dc000000, IRQ 19, node addr b8ac6f815616
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device
ftdi_sio 2-1.1:1.0: FTDI USB Serial Device converter detected
drivers/usb/serial/ftdi_sio.c: Detected FT232BM
usb 2-1.1: FTDI USB Serial Device converter now attached to ttyUSB0
usbcore: registered new driver ftdi_sio
drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver
Floppy drive(s): fd0 is 1.44M
sr0: scsi3-mmc drive: 24x/24x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 3:0:0:0: Attached scsi CD-ROM sr0
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
floppy0: no floppy controllers found
aoe: aoe_init: AoE v22i initialised.
Floppy drive(s): fd0 is 1.44M
floppy0: no floppy controllers found
lp: driver loaded but no devices found
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
ACPI: Power Button (FF) [PWRF]
ACPI: Mapper loaded
dell-wmi: No known WMI GUID found
ACPI Exception (evregion-0424): AE_SUPPORT, Returned by Handler for [DataTable] [20060707]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PMI0._GHL] (Node ffff880001c37f70), AE_SUPPORT
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PMI0._PMC] (Node ffff880001c373f0), AE_SUPPORT
ACPI Exception (power_meter-0759): AE_SUPPORT, Evaluating _PMC [20060707]
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
device-mapper: multipath: version 1.0.5 loaded
loop: loaded (max 128 devices)
EXT3 FS on dm-0, internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 10223608k swap on /dev/VolGroup00/LogVol01. Priority:-1 extents:1 across:10223608k
IA-32 Microcode Update Driver: v1.14-xen <tigran@veritas.com>
Loading iSCSI transport class v2.0-871.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
cxgb3i: tag itt 0x1fff, 13 bits, age 0xf, 4 bits.
iscsi: registered transport (cxgb3i)
Broadcom NetXtreme II CNIC Driver cnic v2.1.0 (Oct 10, 2009)
cnic: Added CNIC device: eth0
cnic: Added CNIC device: eth1
Broadcom NetXtreme II iSCSI Driver bnx2i v2.1.0 (Dec 06, 2009)
iscsi: registered transport (bnx2i)
bnx2i: unknown device, 0x163b
scsi6 : Broadcom Offload iSCSI Initiator
bnx2i: unknown device, 0x163b
scsi7 : Broadcom Offload iSCSI Initiator
iscsi: registered transport (tcp)
iscsi: registered transport (iser)
iscsi: registered transport (be2iscsi)
ip6_tables: (C) 2000-2006 Netfilter Core Team
ip_tables: (C) 2000-2006 Netfilter Core Team
Netfilter messages via NETLINK v0.30.
ip_conntrack version 2.4 (8192 buckets, 65536 max) - 304 bytes per conntrack
bnx2: eth0: using MSIX
ADDRCONF(NETDEV_UP): eth0: link is not ready
bnx2i: iSCSI not supported, dev=eth0
bnx2i: iSCSI not supported, dev=eth0
bnx2: eth0 NIC Copper Link is Up, 1000 Mbps full duplex, receive & transmit flow control ON
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
FS-Cache: Loaded
Bridge firewalling registered
eth0: no IPv6 routers present
virbr0: no IPv6 routers present
bnx2: peth0: using MSIX
ADDRCONF(NETDEV_UP): peth0: link is not ready
bnx2i: iSCSI not supported, dev=peth0
bnx2i: iSCSI not supported, dev=peth0
bnx2: peth0 NIC Copper Link is Up, 1000 Mbps full duplex, receive & transmit flow control ON
ADDRCONF(NETDEV_CHANGE): peth0: link becomes ready
device peth0 entered promiscuous mode
eth0: topology change detected, propagating
eth0: port 1(peth0) entering forwarding state
peth0: no IPv6 routers present
eth0: no IPv6 routers present


The frequency scaling issue :


[root@hgcc04 cpufreq]# cat scaling_available_frequencies
2528000 2527000 2394000 2261000 2128000 1995000 1862000 1729000 1596000 1463000 1330000 1197000
[root@hgcc04 cpufreq]# cat cpuinfo_cur_freq
2527000
[root@hgcc04 cpufreq]# cpufreq-selector -f 1330000
[root@hgcc04 cpufreq]# cat cpuinfo_cur_freq
2527000
[root@hgcc04 cpufreq]# cpufreq-selector -f 2528000
[root@hgcc04 cpufreq]# cat cpuinfo_cur_freq
2528000
[root@hgcc04 cpufreq]#

You can notice that It changes but not for all frequency steps. It is weird. It was working fine few days ago.
 
Old 04-24-2011, 12:17 PM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
And how is set "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"? It should be "userspace". If not check also if you have it available in "/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors".
 
Old 04-26-2011, 10:17 AM   #5
sethusubbiah
Member
 
Registered: Jul 2010
Posts: 36

Original Poster
Rep: Reputation: 2
Yeah I checked. I set it to userspace and still unable to scale the frequency. We are having a cluster of 13 nodes. In those, only 3 fail to work. We do scaling experiments on these 3. Before the experiments they were working. During the experiment we used the cpufreq subsystem to set frequency and we do it roughly every 1 second. Will this have an effect on this problem ?

I wrote a sample code to test whether frequency scaling works on the machines :


import os

# Function to make sure the input frequency is in the list, accepts a float. Returns 1 on success and 0 on failure
def validate(freq):
freq_list=get_freq_list()
for line in freq_list:
if(freq==float(line)):
return 1
return 0

# Function to set the CPU scaling frequency , accepts a float. Returns 1 on success and 0 on failure
def set_freq(freq):
if(validate(freq)):
exp_freq=str(freq).split('.')[0]
os.system ('cpufreq-selector -f '+exp_freq)
return 1
else:
print "invalid frequency"
return 0

# Function to get the list of available processor frequency steps. Returns a list containing floats
def get_freq_list():
freq_list=[]
try:
all_freq_file=open('/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies')
file_contents=all_freq_file.readline().rstrip().split(' ')
for line in file_contents:
freq_list.append(float(line))
except:
freq_list = [100, 80]
return freq_list

# Function to get current frequency. Returns a float
def get_cur_freq():
cur_freq_file=open('/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq')
return float(cur_freq_file.readline().rstrip())

class Frequency_Manager:
def __init__(self, cpu_number):
self._freq_list = get_freq_list()
self._freq_list.sort(reverse=True)
#print self._freq_list
self._max_freq = self._freq_list[0]
self._min_freq = self._freq_list[-1]

self._normalize_level = self._min_freq

set_freq(self._max_freq)
#self._current_freq = self._max_freq
self._resource_capacity = cpu_number * 100 * self._max_freq / self._normalize_level

def getScaleRatio(self):
#print "alpha:", self._current_freq * 1.0 / self._max_freq
x = get_cur_freq() * 1.0 / self._normalize_level
#y = (1 - 0.71) / (1 - 0.47) * (x - 0.47) + 0.71
return x

def setFreq_back(self, nomorlized_demand, scale_up = False):
target_freq = nomorlized_demand * 1.0 / self._resource_capacity * self._max_freq
index = 0
for i in range(len(self._freq_list)):
left = self._freq_list[i]
right = -1
if i < len(self._freq_list) - 1:
right = self._freq_list[i + 1]
if(left >= target_freq and target_freq > right):
index = i
break
#print "setting frequency:", self._freq_list[index]
if scale_up:
if index > 0:
index -= 1
target_freq = self._freq_list[index]
if target_freq != get_cur_freq():
set_freq(self._freq_list[index])
#self._current_freq = self._freq_list[index]

def setFreq(self, nomorlized_demand, scale_up = False):
target_freq = nomorlized_demand * 1.0 / 100 * self._normalize_level
index = 0
for i in range(len(self._freq_list)):
left = self._freq_list[i]
right = -1
if i < len(self._freq_list) - 1:
right = self._freq_list[i + 1]
if(left >= target_freq and target_freq > right):
index = i
break
#print "setting frequency:", self._freq_list[index]
if scale_up:
if index > 0:
index -= 1
target_freq = self._freq_list[index]
if target_freq != get_cur_freq():
set_freq(self._freq_list[index])
#self._current_freq = self._freq_list[index]

def getCapacity(self):
return self._resource_capacity

def getFreq(self):
return get_cur_freq()


if __name__ == '__main__':
freq_list = get_freq_list()
for freq in freq_list:
set_freq(freq)
getfreq = get_cur_freq()
print "set: %s, get: %s" % (freq, getfreq)





My output in a machine in which scaling failed to work completely :


set: 2528000.0, get: 2528000.0
set: 2527000.0, get: 2528000.0
set: 2394000.0, get: 2528000.0
set: 2261000.0, get: 2528000.0
set: 2128000.0, get: 2528000.0
set: 1995000.0, get: 2528000.0
set: 1862000.0, get: 2528000.0
set: 1729000.0, get: 2528000.0
set: 1596000.0, get: 2528000.0
set: 1463000.0, get: 2528000.0
set: 1330000.0, get: 2528000.0
set: 1197000.0, get: 2528000.0

In a machine in which it partially works (This case makes me go crazy) :


set: 2528000.0, get: 2528000.0
set: 2527000.0, get: 2527000.0
set: 2394000.0, get: 2394000.0
set: 2261000.0, get: 2261000.0
set: 2128000.0, get: 2128000.0
set: 1995000.0, get: 1995000.0
set: 1862000.0, get: 1862000.0
set: 1729000.0, get: 1862000.0
set: 1596000.0, get: 1862000.0
set: 1463000.0, get: 1862000.0
set: 1330000.0, get: 1862000.0
set: 1197000.0, get: 1862000.0


In a machine where it completely works :


set: 2528000.0, get: 2528000.0
set: 2527000.0, get: 2527000.0
set: 2394000.0, get: 2394000.0
set: 2261000.0, get: 2261000.0
set: 2128000.0, get: 2128000.0
set: 1995000.0, get: 1995000.0
set: 1862000.0, get: 1862000.0
set: 1729000.0, get: 1729000.0
set: 1596000.0, get: 1596000.0
set: 1463000.0, get: 1463000.0
set: 1330000.0, get: 1330000.0
set: 1197000.0, get: 1197000.0


I am running these experiments in Centos 5.5 OS . Kernel : 2.6.16-194 with Xen hypervisor version 3.4.3. The processor used is Intel Xeon 3440 with speedstep enabled.
 
Old 04-26-2011, 02:04 PM   #6
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Is it always that you can't set under some frequency (1862000 in your example)?
Can you check what is in "cpuinfo_max_freq", "cpuinfo_min_freq" and "scaling_min_freq", "scaling_max_freq", it should be the same. I can change the later values.
 
Old 04-27-2011, 10:04 AM   #7
sethusubbiah
Member
 
Registered: Jul 2010
Posts: 36

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by eSelix View Post
Is it always that you can't set under some frequency (1862000 in your example)?
Can you check what is in "cpuinfo_max_freq", "cpuinfo_min_freq" and "scaling_min_freq", "scaling_max_freq", it should be the same. I can change the later values.
[root@hgcc06 cpufreq]# cat cpuinfo_max_freq
2528000
[root@hgcc06 cpufreq]# cat cpuinfo_min_freq
1197000
[root@hgcc06 cpufreq]# cat scaling_max_freq
2528000
[root@hgcc06 cpufreq]# cat scaling_min_freq
1197000
[root@hgcc06 cpufreq]#


But still scaling is not working
 
Old 04-28-2011, 09:53 PM   #8
sethusubbiah
Member
 
Registered: Jul 2010
Posts: 36

Original Poster
Rep: Reputation: 2
When i enter "service cpuspeed status "

I get "cpuspeed dead but subsys locked"
 
Old 04-29-2011, 08:05 AM   #9
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
I don't known what that is mean. But I am curious if you set powersafe governor, then CPU speed will be 1197000 or not?

Quote:
Before the experiments they were working. During the experiment we used the cpufreq subsystem to set frequency and we do it roughly every 1 second.
Well, it seems that these experiments changed something. Can explain what exactly was made? Maybe some used code.
 
  


Reply

Tags
cpu, frequency, scaling



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU Frequency Scaling runa Linux - Hardware 5 04-24-2011 11:23 AM
cpu frequency scaling tramni1980 Slackware 5 12-27-2008 11:51 AM
cpu frequency scaling not working properly in 2.6.18.8 BCarey Slackware 19 05-08-2007 12:34 PM
cpu frequency scaling....anyone? alaios Linux - General 3 06-07-2005 10:51 AM
Dothan Frequency Scaling not working (SuSE 9.1/Mandrake 10) m.b Linux - Laptop and Netbook 1 04-05-2005 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration