Jump to content
XPEnology Community

DSM 5.x/6.x/7.x CPU name & cores infomation Change tool


FOXBI

Recommended Posts

Thank you, however:

 

Can you publish your source script?  I assumed you were loading node.js to run the javascript code, but I am not sure how that could be compiled into an executable file with shc.

 

I do not understand why you prefer to distribute as an executable file, seems a risk for others to accept this.

  • Thanks 1
Link to comment
Share on other sites

2 hours ago, flyride said:

Thank you, however:

 

Can you publish your source script?  I assumed you were loading node.js to run the javascript code, but I am not sure how that could be compiled into an executable file with shc.

 

I do not understand why you prefer to distribute as an executable file, seems a risk for others to accept this.

 

Thanks for the advice.

 

First, This is the system bash shell script, not node.js or javascript.

 

The reason I made this tool binary is that most DSM users do not understand the shell script, so to minimize the possibility of malfunction caused by mistake.

 

Also, I am not a professional developer, so I was embarrassed to publish a script that was made inexact.

 

For that reason, I uploaded it as an executable file, and I thought enough about what could be misunderstood as an executable.

 

It is up you to decide whether to believe or not.

 

If you like, publishing the source is not difficult. Please refer to the following.

 

Instead, please do not blame me for not making it. :)

 

Spoiler

#!/bin/bash
# Ver 1.0 2018.08.17 Made by FOXBI
# ==============================================================================
# Y or N Function
# ==============================================================================
READ_YN () { # $1:question $2:default
   read -n1 -p "$1" Y_N
    case "$Y_N" in
    y) Y_N="y"
         echo -e "\n" ;;
    n) Y_N="n"
         echo -e "\n" ;;        
    q) echo -e "\n"
       exit 0 ;;
    *) echo -e "\n" ;;
    esac
   
}

# ==============================================================================
# Process Function
# ==============================================================================
PREPARE_FN () {
    if [ -f "$WORK_DIR/admin_center.js" ]
    then
        if [ "$direct_job" == "y" ]
        then
            echo "warning!! Work directly on the original file without backup.\n"
        else    
            tar -cf $BKUP_DIR/$TIME/admin_center.tar admin_center.js*
        fi
        if [ "$MA_VER" -eq "6" ] && [ "$MI_VER" -ge "2" ]
        then
            mv $WORK_DIR/admin_center.js.gz $BKUP_DIR/
	        cd $BKUP_DIR/
            gzip -df $BKUP_DIR/admin_center.js.gz        
        else
            cp -Rf $WORK_DIR/admin_center.js $BKUP_DIR/
        fi
    else
        COMMENT08_FN
        exit 0
    fi
}

GATHER_FN () {
    cpu_vendor=`dmidecode -t processor | grep Version | grep -v Unknown | sort -u | sed "s/(.)//g" | sed "s/(..)//g" | sed "s/CPU//g" | awk '{print $2}'`
    cpu_family=`dmidecode -t processor | grep Version | grep -v Unknown | sort -u | sed "s/(.)//g" | sed "s/(..)//g" | sed "s/CPU//g" | awk '{print $3}'`
    if [ "$cpu_vendor" == "AMD" ]
    then
        cpu_series=`dmidecode -t processor | grep Version | grep -v Unknown | grep -v Not | sort -u | sed "s/(.)//g" | sed "s/(..)//g" | sed "s/CPU//g" | awk -F "Version: " '{ print $2 }' | awk -F "Processor" '{ print $1 }'`
    else
        cpu_series=`dmidecode -t processor | grep Version | grep -v Unknown | grep -v Not | sort -u | sed "s/(.)//g" | sed "s/(..)//g" | sed "s/CPU//g" | awk '{ if (index($5,"@")!=0) { print $4 } else { print $4" "$5 } }'`
    fi
    cpu_cores=`cat /proc/cpuinfo | grep processor| wc -l`
}

PERFORM_FN () {
    if [ -f "$BKUP_DIR/admin_center.js" ]
    then    
        if [ "$MA_VER" -ge "6" ]
        then
            cpu_info=`echo "f.cpu_vendor=\"${cpu_vendor}\";f.cpu_family=\"${cpu_family}\";f.cpu_series=\"${cpu_series}\";f.cpu_cores=\"${cpu_cores}\";"`
            sed -i "s/f.model]);/f.model]);${cpu_info}/g" $BKUP_DIR/admin_center.js
        else
            if [ "$MI_VER" -gt "0" ]
            then
                cpu_info=`echo "b.cpu_vendor=\"${cpu_vendor}\";b.cpu_family=\"${cpu_family}\";b.cpu_series=\"${cpu_series}\";b.cpu_cores=\"${cpu_cores}\";"`
            else
                cpu_info=`echo "b.cpu_vendor=\"${cpu_vendor}\";b.cpu_family=\"${cpu_family}${cpu_series}\";b.cpu_cores=\"${cpu_cores}\";"`
            fi
            sed -i "s/b.model]);/b.model]);${cpu_info}/g" $BKUP_DIR/admin_center.js
        fi
    else
        COMMENT08_FN
        exit 0
    fi
}

APPLY_FN () {
    if [ -f "$BKUP_DIR/admin_center.js" ]
    then    
        cp -Rf $BKUP_DIR/admin_center.js $WORK_DIR/
        if [ "$MA_VER" -eq "6" ] && [ "$MI_VER" -ge "2" ]
        then    
            gzip $BKUP_DIR/admin_center.js
            mv $BKUP_DIR/admin_center.js.gz $WORK_DIR/
        fi
    else
        COMMENT08_FN
        exit 0
    fi        
}

RECOVER1_FN () {
    if [ "$Y_N" == "y" ]    
    then
        RECOVER2_FN
    elif [ "$Y_N" == "n" ]
    then
        echo "No recovery was performed."   
    else
        COMMENT10_FN
    fi
}

RECOVER2_FN () {
    if [ -d "$BKUP_DIR/$TIME" ]
    then
        cd $WORK_DIR
        tar -xf $BKUP_DIR/$TIME/admin_center.tar
        if [ "$re_check" == "y" ]
        then
            echo -e "Restore to source and continue.\n"
        else
            COMMENT09_FN
        fi
    else
        COMMENT08_FN
        exit 0
    fi
}

EXEC_FN () {
if [ -d $WORK_DIR ]
then    
    READ_YN "Auto Excute, If you select n, proceed interactively  (Cancel : q) [y/n] : "
    if [ "$Y_N" == "y" ]
    then
        mkdir -p $BKUP_DIR/$TIME
        cd $WORK_DIR

        if [ "$re_check" == "y" ]
        then
            RECOVER2_FN
        fi

        PREPARE_FN

        GATHER_FN

        PERFORM_FN

        APPLY_FN

        COMMENT09_FN

    elif [ "$Y_N" == "n" ]
    then
        READ_YN "Proceed with original file backup and preparation.. If you select n, Work directly on the original file. (Cancel : q) [y/n] : "
        if [ "$Y_N" == "y" ]    
        then
            mkdir -p $BKUP_DIR/$TIME
		    cd $WORK_DIR

            if [ "$re_check" == "y" ]
            then
 		        RECOVER2_FN
            fi

            PREPARE_FN

        elif [ "$Y_N" == "n" ]
        then
            direct_job=y
            mkdir -p $BKUP_DIR
            PREPARE_FN            
        else
            COMMENT10_FN
        fi

        READ_YN "CPU name, Core count and reflects it. If you select n, Resote original file (Cancel : q) [y/n] : "
        if [ "$Y_N" == "y" ]    
        then    
            GATHER_FN

            PERFORM_FN

            APPLY_FN

		    COMMENT09_FN
        elif [ "$Y_N" == "n" ]
        then
	        if [ -d "$BKUP_DIR" ]
    	    then
                gzip $BKUP_DIR/admin_center.js
                mv $BKUP_DIR/admin_center.js.gz $WORK_DIR/
		    else
			    COMMENT07_FN
		    fi
        else
            COMMENT10_FN
        fi
    else
        COMMENT10_FN
    fi
else
    COMMENT08_FN
fi
}

COMMENT07_FN () {
    echo "No execution history. Please go back to the first run."
    exit 0
}

COMMENT08_FN () {
    echo "The target file(location) does not exist. Please run again after checking."
    exit 0
}

COMMENT09_FN () {
    echo "The operation is complete!! It takes about 1-2 minutes to reflect, please refresh the DSM page with F5 and check the information."
    exit 0
}

COMMENT10_FN () {
    echo "Only y / n / q can be input. Please proceed again."
    exit 0
}

# ==============================================================================
# Main Progress
# ==============================================================================
clear
TIME=`date +%Y%m%d%H%M%S`
WORK_DIR="/usr/syno/synoman/webman/modules/AdminCenter"
BKUP_DIR="/root/Xpenology_backup"
VER_DIR="/etc.default"

if [ -d "$VER_DIR" ]
then
    VER_FIL="$VER_DIR/VERSION"
else
    VER_FIL="/etc/VERSION"
fi

if [ -f "$VER_FIL" ]
then
    MA_VER=`cat $VER_FIL | grep majorversion | awk -F \= '{print $2}' | sed 's/\"//g'`
    MI_VER=`cat $VER_FIL | grep minorversion | awk -F \= '{print $2}' | sed 's/\"//g'`
else
    COMMENT08_FN
fi

if [ "$MA_VER" -gt "4" ]
then
    echo "Your version of DSM is \033[0;34mDSM \033[0;31m"$MA_VER"."$MI_VER"\033[0;32m continue...\n"
else
    echo "DSM version less than 5 is not supported. End the process."
    exit 0
fi

read -n1 -p "1) First run  2) Redo  3) Restore - Select Number : " inst_z 
   case "$inst_z" in
   1) inst_check=install 
      echo -e "\n " ;;
   2) inst_check=reinstall 
      echo -e "\n " ;;
   3) inst_check=recovery 
      echo -e "\n " ;;
   *) echo -e "\n" ;;
   esac

if [ "$inst_check" = "reinstall" ]
then
	READ_YN "Do you want to proceed again? Restore to original file backup and proceed.(Cancel : q) [y/n] : "
    inst_check=install
    re_check=y
    if [ -d "$BKUP_DIR" ]
    then
        TIME=`ls -l $BKUP_DIR/ | grep ^d | awk '{print $9}' | head -1`
    else
        COMMENT07_FN
        exit 0
    fi

    if [ "$Y_N" == "y" ]    
    then        
        EXEC_FN
    elif [ "$Y_N" == "n" ]
    then
        echo "Do not proceed with the redo."    
    else
        COMMENT10_FN
    fi
elif [ "$inst_check" = "recovery" ]
then
	READ_YN "Do you want to restore using the original backup file? (Cancel : q) [y/n] : "
    re_check=n
    if [ -d "$BKUP_DIR" ]
    then    
        TIME=`ls -l $BKUP_DIR/ | grep ^d | awk '{print $9}' | head -1`    
    else
        COMMENT07_FN
        exit 0
    fi
    RECOVER1_FN
elif [ "$inst_check" = "install" ]
then
    re_check=n
    EXEC_FN
else
    echo "Please select the correct number."
fi

 

 

Edited by Polanskiman
Added code tag
  • Thanks 2
Link to comment
Share on other sites

1 hour ago, Polanskiman said:

Small note. This will not survive even a critical update so this script should be run each time there is DSM update.

thank you "Polanskiman" for the information !!

 

 

Additional,

 

Taking the DS3615xs's update as an example..

 

if the update package file "synology_bromolow_3615xs.pat" contains "dsm-AdminCenter-bromolow-bin_6.2-23739-s2_all.deb",

 

"admin_center.js, admin_center.gz.js" files in the *.deb will overwrite the modified files as posted by "Polanskiman",

 

and the contents of the CPU information will be replaced with the original contents.

 

Easy!! You just have to do it again. :)

 

 

Warnning!!

 

If you run this tool and update it, and the CPU info has changed to the original info, 

 

1st, delete location "/root/Xpenology"

 

2nd, please do not select 2) Redo and select 1) First Run.

 

Because, If you choose 2) Redo, you will be restoring to the pre-patch version.

 

 

 

 

I will reflect the contents when revising the next version. :)

Edited by FOXBI
add comment
Link to comment
Share on other sites

13 hours ago, ihongyi said:

I have obtained root privileges to run ./ch_cpuin f o prompt -ash: ./ch_cpuinfo: Permission denied

 

Check your uploaded file permission

 

If Permission is not"rwxr-xr-x" or "rwx--x--x", you can be change 755 or 777 by "chmod" command.

Link to comment
Share on other sites

  • 3 weeks later...
10 hours ago, stefauresi said:

Hi,

 

After run ./ch_cpuinfo

In DSM info :

CPU name = nothing

CPU cores = 6

My CPU : Intel(R) Core(TM) i5-8600 CPU @ 3.10GHz

 

dsm.PNG

 

After reboot CPU info has changed to the original info 😥

 

 

 

 

Please let me know the result of the commands below.

 

dmidecode -t processor

and

 

cat /proc/cpuinfo

 

Link to comment
Share on other sites

 

root@DiskStation:~# dmidecode -t processor
# dmidecode 2.12
# No SMBIOS nor DMI entry point found, sorry.

and

root@DiskStation:~#cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 158
model name      : Intel(R) Core(TM) i5-8600 CPU @ 3.10GHz
stepping        : 10
microcode       : 0x96
cpu MHz         : 3095.998
cache size      : 9216 KB
physical id     : 0
siblings        : 6
core id         : 0
cpu cores       : 6
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch ida arat invpcid_single pln pts dtherm hwp hwp_notify hwp_act_window hwp_epp intel_pt rsb_ctxsw retpoline tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1
bugs            : cpu_meltdown spectre_v1 spectre_v2
bogomips        : 6191.99
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

 

  • Thanks 1
Link to comment
Share on other sites

7 hours ago, stefauresi said:

 


root@DiskStation:~# dmidecode -t processor
# dmidecode 2.12
# No SMBIOS nor DMI entry point found, sorry.

and


root@DiskStation:~#cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 158
model name      : Intel(R) Core(TM) i5-8600 CPU @ 3.10GHz
stepping        : 10
microcode       : 0x96
cpu MHz         : 3095.998
cache size      : 9216 KB
physical id     : 0
siblings        : 6
core id         : 0
cpu cores       : 6
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch ida arat invpcid_single pln pts dtherm hwp hwp_notify hwp_act_window hwp_epp intel_pt rsb_ctxsw retpoline tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1
bugs            : cpu_meltdown spectre_v1 spectre_v2
bogomips        : 6191.99
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

 

 

Thank you.

 

I found out what the problem was because of the results you showed.

 

I will upload and update soon. After that, your machine will be able to see cpu info.

  • Thanks 1
Link to comment
Share on other sites

Hey there - THANK YOU SO MUCH FOR MAKING THIS POSSIBLE!  It's been one of those little annoying things there was never a resolution for, until you worked your MAGIC!

 

Seems like there might still be some bugs, with the CPU SPEED and number of CORES.  Image #1:Original Info Center    Image #2:After running ch_cpuinfo   Image #3: BIOS Info   Image #4: Mobile Info Center

 

Spoiler

 

root@CentralNAS:/volume1/homes/admin/shc-3.8.9b# dmidecode -t processor

 

# dmidecode 2.12

# SMBIOS entry point at 0x000f0000

SMBIOS 2.7 present.

 

Handle 0x005E, DMI type 4, 42 bytes

Processor Information

Socket Designation: CPU 1

Type: Central Processor

Family: Core i3

Manufacturer: Intel(R) Corporation

ID: A9 06 03 00 FF FB EB BF

Signature: Type 0, Family 6, Model 58, Stepping 9

Flags:

FPU (Floating-point unit on-chip)

VME (Virtual mode extension)

DE (Debugging extension)

PSE (Page size extension)

TSC (Time stamp counter)

MSR (Model specific registers)

PAE (Physical address extension)

MCE (Machine check exception)

CX8 (CMPXCHG8 instruction supported)

APIC (On-chip APIC hardware supported)

SEP (Fast system call)

MTRR (Memory type range registers)

PGE (Page global enable)

MCA (Machine check architecture)

CMOV (Conditional move instruction supported)

PAT (Page attribute table)

PSE-36 (36-bit page size extension)

CLFSH (CLFLUSH instruction supported)

DS (Debug store)

ACPI (ACPI supported)

MMX (MMX technology supported)

FXSR (FXSAVE and FXSTOR instructions supported)

SSE (Streaming SIMD extensions)

SSE2 (Streaming SIMD extensions 2)

SS (Self-snoop)

HTT (Multi-threading)

TM (Thermal monitor supported)

PBE (Pending break enabled)

Version: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz

Voltage: 2.9 V

External Clock: 100 MHz

Max Speed: 3300 MHz

Current Speed: 3300 MHz

Status: Populated, Enabled

Upgrade: Socket BGA1155

L1 Cache Handle: 0x003A

L2 Cache Handle: 0x003B

L3 Cache Handle: 0x003C

Serial Number: Not Specified

Asset Tag: Fill By OEM

Part Number: Fill By OEM

Core Count: 2

Core Enabled: 2

Thread Count: 4

Characteristics:

64-bit capable

 

root@CentralNAS:/volume1/homes/admin/shc-3.8.9b# cat /proc/cpuinfo

processor : 0

vendor_id : GenuineIntel

cpu family : 6

model : 58

model name : Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz

stepping : 9

microcode : 0x19

cpu MHz : 3292.436

cache size : 3072 KB

physical id : 0

siblings : 4

core id : 0

cpu cores : 2

apicid : 0

initial apicid : 0

fpu : yes

fpu_exception : yes

cpuid level : 13

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx f16c lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips : 6584.87

clflush size : 64

cache_alignment : 64

address sizes : 36 bits physical, 48 bits virtual

power management:

 

processor : 1

vendor_id : GenuineIntel

cpu family : 6

model : 58

model name : Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz

stepping : 9

microcode : 0x19

cpu MHz : 3292.436

cache size : 3072 KB

physical id : 0

siblings : 4

core id : 1

cpu cores : 2

apicid : 2

initial apicid : 2

fpu : yes

fpu_exception : yes

cpuid level : 13

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx f16c lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips : 6584.87

clflush size : 64

cache_alignment : 64

address sizes : 36 bits physical, 48 bits virtual

power management:

 

processor : 2

vendor_id : GenuineIntel

cpu family : 6

model : 58

model name : Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz

stepping : 9

microcode : 0x19

cpu MHz : 3292.436

cache size : 3072 KB

physical id : 0

siblings : 4

core id : 0

cpu cores : 2

apicid : 1

initial apicid : 1

fpu : yes

fpu_exception : yes

cpuid level : 13

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx f16c lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips : 6584.87

clflush size : 64

cache_alignment : 64

address sizes : 36 bits physical, 48 bits virtual

power management:

 

processor : 3

vendor_id : GenuineIntel

cpu family : 6

model : 58

model name : Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz

stepping : 9

microcode : 0x19

cpu MHz : 3292.436

cache size : 3072 KB

physical id : 0

siblings : 4

core id : 1

cpu cores : 2

apicid : 3

initial apicid : 3

fpu : yes

fpu_exception : yes

cpuid level : 13

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx f16c lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips : 6584.87

clflush size : 64

cache_alignment : 64

address sizes : 36 bits physical, 48 bits virtual

power management:

 

 

I hope you find this helpful/useful!  If there is anything I can do to help, please let me know!

 

Thank You

IMG_6629.JPG

IMG_6628.JPG

IMG_6661.PNG

IMG_6660.JPG

Edited by Polanskiman
Added log to spoiler code.
  • Thanks 1
Link to comment
Share on other sites

16 hours ago, gericb said:

Seems like there might still be some bugs, with the CPU SPEED and number of CORES.  Image #1:Original Info Center    Image #2:After running ch_cpuinfo   Image #3: BIOS Info   Image #4: Mobile Info Center

 

First, find by ark.intel.com site.

# i3-3220 -> of Core: 2 / of Threads4 / Frequency : 3.30Ghz

# i3-4130 -> of Core: 2 / of Threads: 4 / Frequency : 3.40Ghz

 

Compared to the results you showed, I do not mind the number of cores, but I think Frequency needs to be checked.

 

Image #3 Bios Info

Core Count = 2 / HT Capable = yes -> Total Logical Cores is 4.

 

 

I do not know if your Xpenology environment is Native or VM, but generally the total number of cores is determined by the number of logical cores.

 

Your i3-3220 looks normal. As with the /proc/cpuinfo output (processor 0 to 3, total count 4).

 

However, i3-4130 is 2Core, HT is disabled or VM is likely to have allocated 2Core.

 

In case of Frequency, I decided that my CPU is E3-1230 V2 and it is normal. It looks like your i3-4130 result shows a fixed value at the time of disconnection.

 

 

Please check it again and show me the i3-4130's cpuinfo, dmidecode.

 

 

Your information will be of great help. Thank you !!

Link to comment
Share on other sites

20 minutes ago, FOXBI said:

 

First, find by ark.intel.com site.

# i3-3220 -> of Core: 2 / of Threads4 / Frequency : 3.30Ghz

# i3-4130 -> of Core: 2 / of Threads: 4 / Frequency : 3.40Ghz

 

Compared to the results you showed, I do not mind the number of cores, but I think Frequency needs to be checked.

 

Image #3 Bios Info

Core Count = 2 / HT Capable = yes -> Total Logical Cores is 4.

 

 

I do not know if your Xpenology environment is Native or VM, but generally the total number of cores is determined by the number of logical cores.

 

Your i3-3220 looks normal. As with the /proc/cpuinfo output (processor 0 to 3, total count 4).

 

However, i3-4130 is 2Core, HT is disabled or VM is likely to have allocated 2Core.

 

In case of Frequency, I decided that my CPU is E3-1230 V2 and it is normal. It looks like your i3-4130 result shows a fixed value at the time of disconnection.

 

 

Please check it again and show me the i3-4130's cpuinfo, dmidecode.

 

 

Your information will be of great help. Thank you !!

 

But it's wrong though.  In Image #2, 4 it's showing 4 cores, which isn't correct as validated by Image #3 directly from the BIOS.  This is a bare metal install, no VM, no HT option to enable/disable.  The i3-4130 is the default CPU info from the DS3615xs, my system is the i3-3220 (BIOS image #3).  But CORES and THREADS are different, not the same.  Seems you are display for CORES, the what is actually the THREADS.

 

As far as the CPU frequency goes, 3.29Ghz where is it getting that from, since it should be 3.30Ghz and none of the command line data or BIOS indicates that value. 🤔

 

Do I make sense? 🤓

  • Thanks 1
Link to comment
Share on other sites

23 minutes ago, gericb said:

 

But it's wrong though.  In Image #2, 4 it's showing 4 cores, which isn't correct as validated by Image #3 directly from the BIOS.  This is a bare metal install, no VM, no HT option to enable/disable.  The i3-4130 is the default CPU info from the DS3615xs, my system is the i3-3220 (BIOS image #3).  But CORES and THREADS are different, not the same.  Seems you are display for CORES, the what is actually the THREADS.

 

As far as the CPU frequency goes, 3.29Ghz where is it getting that from, since it should be 3.30Ghz and none of the command line data or BIOS indicates that value. 🤔

 

Do I make sense? 🤓

 

OMG!!!

 

I’m so sorry...

 

I was completely forgetting the basic information of the DS3615xs. I also seem to have misunderstood the intent of the question.

 

Please understand my mistakes and forgive me if the my reply is rude.

 

The number of cores was determined only by the total number of processors on cpuinfo. I'll try to think more about the core.

 

Thank you :)

Link to comment
Share on other sites

27 minutes ago, FOXBI said:

 

OMG!!!

 

I’m so sorry...

 

I was completely forgetting the basic information of the DS3615xs. I also seem to have misunderstood the intent of the question.

 

Please understand my mistakes and forgive me if the my reply is rude.

 

The number of cores was determined only by the total number of processors on cpuinfo. I'll try to think more about the core.

 

Thank you :)

 

FOXBI!  You are TOTALLY making us happy, I have been wanting to change this CPU INFO forever, so you're hard work in finding where it is, and how to change it - IS WONDERFUL!!!  if you search through the forum, you will see many people regularly say that it "could not be changed, as it was hard coded..." and you have clearly proved these statements to be totally uneducated and wrong.  I appreciate your work, you are in no way rude or need any forgiveness, you are making great things happen!! 😎   Just trying to help you as best I can, I APPRECIATE you and your creativity/work.

  • Thanks 1
Link to comment
Share on other sites

23 minutes ago, gericb said:

 

FOXBI!  You are TOTALLY making us happy, I have been wanting to change this CPU INFO forever, so you're hard work in finding where it is, and how to change it - IS WONDERFUL!!!  if you search through the forum, you will see many people regularly say that it "could not be changed, as it was hard coded..." and you have clearly proved these statements to be totally uneducated and wrong.  I appreciate your work, you are in no way rude or need any forgiveness, you are making great things happen!! 😎   Just trying to help you as best I can, I APPRECIATE you and your creativity/work.

 

Thanks gericb :)

 

like the story of "praise makes whales dance," and I am grateful for your praise and support and I feel rewarding for this work.

 

I will make continue something that a lot of people can sympathize with.

 

And.. Considering your feedback, let's express a more advanced way to core in the next version. :)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...