Jump to content
XPEnology Community

FOXBI

Developer
  • Posts

    159
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by FOXBI

  1. Sorry. As the number goes up, this situation occurs. DSM 6.x and ch_cpu info 5.2. I will correct it. Thank you!!
  2. Please run it as a new source file. I have solved the related problem.
  3. Please run it as a new source file.
  4. I have been busy a little while and the update is late. Sorry for not responding to your feedback right away. I uploaded a new version file that source after including the work so that it can run even in DSM 5.x version.. It's possible to use !! Publish the source is not only here, but also through github(https://github.com/FOXBI/ch_cpuinfo). For versions DSM 6.x and later, you can use the binary as before. If you use busybox in DSM 5.x, you can use it as a source file(ch_cpuinfo.sh).
  5. In the 5.x version environment, I checked exactly what the problem was after testing. 5.x version is configured as busybox unlike jun's loader of 6.x. busybox does not have bash defined and should use sh or ash. ## DSM 5.x Syno52> ls -lrt /bin/*sh* lrwxrwxrwx 1 root root 7 Nov 8 17:34 /bin/sh -> busybox lrwxrwxrwx 1 root root 7 Nov 8 17:34 /bin/ash -> busybox ## DSM 6.x root@admin:~# ls -lrt /bin/*sh* | grep bash -rwxr-xr-x 1 root root 1024856 May 19 09:35 /bin/bash lrwxrwxrwx 1 root root 4 Aug 15 18:45 /bin/sh -> bash lrwxrwxrwx 1 root root 4 Aug 15 18:45 /bin/ash -> bash It is judged that it is necessary to modify with boths by "/bin/sh". But, binary execution will fail with an error message with "applet not found" (probably because busybox is lite linux base). So, I am worried. About How to distribute in binary format ... (Actually, when I run by shell script, 5.x version also works normally.) I will think more and make a decision. Thanks nvrsk for your information! I apologize for the inconvenience.
  6. It's not just bash's problem. I’ll create a test environment as soon as possible and make it fixed available. Thank you for your feedback.
  7. I feel gratitude for your understanding and support. I can not do everything here, but I will keep improving as time goes on. Thank you!!!
  8. OMG!!! I did not test it in 5.x, so I did not think bash would be there. I'll prepare 5.x version as soon as possible and fix it. As a temporary measure, please test the execution of ch_cpuinfo after doing the following. ln -s /bin/sh /bin/bash ls -l /bin/bash And, Please inform me of ch_cpuinfo command result. Thank you!!
  9. Someone asked a similar question in the past. and, The deployment source has been commented out several times. 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. Please refer to the above as an answer to your question.
  10. As mentioned in the main topic, Exactly speaking, this is encryption. It would be better to understand that you run an encrypted script in a shell environment.
  11. Typically, shell scripts are created by defining bash, sh, or other shell environments (of course, they work with the default shell environment). Depending on the shell defined, the source code may change (for example, ksh and bash have different ways of handling variable values in the while statement). The source will be shared separately and I do not change that the binary distribute way. (Of course, this time case I'll be share it later because of the code I use for business purposes.) Thank you for your feedback.
  12. Add to. id ls -l /bin/bash Please inform me of the above command result. In the 5.x version, it is not tested directly, so it may not be possible.
  13. In DSM Web & Mobile Web Info, the changed values are displayed normally, but App is loading values in DB or elsewhere. Sorce code is not as complicated as it is now, if I found it in the first place I am studying postgres and Ext.js for further help.
  14. As mentioned in the main topic, this tool changes the Web UI and does not touch the functionality of the app itself. App such as "DS Finder" probably I thinks that it brings in values from elsewhere. I'm looking for that part too. I will try to reflect when I find it. Thank you for your feedback.
  15. Thanks for the advice. But, The result value of your code is same to one of my codes below. cat /proc/cpuinfo | grep "cpu cores" | sort -u | awk '{print $NF}' If I was just extracting core values, I would have used only one line. The remaining values are collected to make the most of the number of cpu, HT support, vm, intel, amd, openstack, and docker environments.(It may not be perfect.) I will reference to your link. Thank you very much!!
  16. Sorry, I'm afraid I have to show you next time. The code in this section is not complicated, but the current source for the CPU core is the code I made for use in my work area. It is likely to be misunderstood as business data leakage by me. so, I think possible to disclose after changing some variables and contents. I would be grateful if you could wait a little longer. Add to.. It's actually in the main topic. It is not a difficult part because it is produced through the values collected by the following five variables. cat /proc/cpuinfo | grep "processor" | sort -u | wc -l cat /proc/cpuinfo | grep "physical id" | sort -u | wc -l cat /proc/cpuinfo | grep "core id" | sort -u | wc -l cat /proc/cpuinfo | grep "siblings" | sort -u | awk '{print $NF}' cat /proc/cpuinfo | grep "cpu cores" | sort -u | awk '{print $NF}'
  17. I uploaded a new version file that change to core information collection method. It's possible to use !! I made a mistaken judgment by my business habits. I apologize for the wrong information.
  18. Sorry. Unfortunately, you modified it to 4.01, and I also updated the 5.0 new version. In addition, i'll check the fix part and reflect it later.
  19. Sorry, I have not yet prepared the 1.04b environment. I'll check it later when I'm ready.
  20. I think so happen problem, when you pasted shell source. original source not include \r Perhaps it seems that \r has been inserted in the line change during the pasting process. It is possible that some terminal programs may occur. Please compress the source created by notepad, upload & unzip it, and try to execute it gook luck
  21. Hello, Why are not attachments being downloaded? Please contact the forum administrator. It may not be a problem in your shell environment or in the pasting process. Please try debugging with #sh -x cpu_info You can see at a glance where the error occurs. If you show me the results, I will look for problems together.
  22. I am not a professional developer I am a bit embarrassed every time I release the source ,, Please see below.
  23. 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.
  24. 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
  25. First, find by ark.intel.com site. # i3-3220 -> of Core: 2 / of Threads: 4 / 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 !!
×
×
  • Create New...