Phần 1. Các bước tạo và cấu hình Máy ảo được tối ưu hóa hiệu suất Windows Server 2016:
Mặc dù khá đơn giản để lấy các giá trị mặc định, nhưng đối với các thành phần phần cứng của VM, nó không phải lúc nào cũng là những thứ tốt nhất khi nói đến hiệu suất. Trong bài này, chúng ta sẽ khám phá các khả năng và bước thực hiện khác nhau để mang đến cho bạn cơ hội tạo Máy ảo VM Tối ưu hóa hiệu suất của Windows Server 2016 trên ESXi 6.x trực tiếp từ cài đặt và cấu hình.
1. Phân tích đặc điểm kỹ thuật (tốc độ và hiệu suất ổ cứng ảo Virtual Storage):
Virtual Storage: các ổ cứng ảo “Virtual disks – VD” được kết nối với ở cứng vật lý thông qua “Virtual storage adapters”. ESXi host cung cấp cho máy ảo một số lựa chọn trong Storage adapter có 6 loại chính:
- BusLogic Parallel
- LSI Logic Parallel
- LSI Logic SAS
- VMware Paravirtual SCSI
- AHCI SATA controller
- Virtual NVMe
Qua đó có bảng so sánh hiệu quả kết nối và điều khiển ổ cứng ảo:
Bảng so sánh phân tích cụ thể về Hiệu suất SCSI controller:
https://blogs.vmware.com/vsphere/2014/02/vscsi-controller-choose-performance.html
Tham khảo:
Virtual Hardware Reference: http://kb.vmware.com/kb/1003746
PVSCSI KB 1010398: http://kb.vmware.com/kb/1010398
Lưu ý Quan trọng: Hãy nhớ rằng sau khi định nghĩa cấu hình đĩa ảo “VD” khởi động để sử dụng bộ điều khiển PVSCSI nghĩa là ổ C: logic hoặc sda, nếu bạn gỡ cài đặt VMware Tools, máy ảo sẽ không thể khởi động thành công vì nó không còn cài đặt trình điều khiển cần thiết.
2. Tiến hành cài đặt VM:
Chúng tôi sẽ sử dụng bộ điều khiển VMware Paravirtual SCSI (viết tắt: VPSCSI) cho đĩa khởi động, nhưng vì Windows Server 2016 không có trình điều khiển nên chúng ta cần “cung cấp” cho HĐH trình điều khiển này trước khi khởi chạy quá trình cài đặt. Chúng tôi sẽ trình bày điều đó trong hướng dẫn dưới đây.
Giả sử bạn có vCenter và bạn có thể kết nối thông qua ứng dụng trình duyệt web: vSphere HTML 5 Web (vẫn chưa hoàn thiện ở vSphere 6.5 và hoàn hảo hơn ở vSphere 6.7u2 trở lên, nhưng hoạt động cho các hoạt động VM cơ bản và hơn thế nữa, ngoại trừ VSAN). Rõ ràng, bạn cũng có thể sử dụng vSphere Web Client (dựa trên Flash ở phiên bản vSphere 6.5 và chấm dứt sử dụng chúng ở phiên bản vSphere 6.7 u2 trở lên).
Nếu bạn đang làm việc trên ESXi độc lập, các bước tương tự cũng sẽ hoạt động, chỉ là công cụ kết nối sẽ khác.
3. Các bước (Trên VMware vSphere HTML 5 Web Client)
Có khá nhiều hướng dẫn về cách cài đặt Windows Server 2016 VM bằng cách sửa đổi phần cứng ảo hiện có sau khi cài đặt. Những gì chúng ta làm là thực hiện một số bước trước khi cài đặt chính thức và chúng ta sẽ có kết quả tương tự và có thể tốt hơn:
- Bước 1: Tải lên Windows Server 2016 ISO trên kho dữ liệu “datastore” mà máy chủ ESXi của bạn hiển thị – bạn có thể thực hiện việc đó thông qua trình duyệt kho dữ liệu “datastore browser” của HTML 5client.
- Bước 2: Trên Máy ảo Windows 2k16, bạn hãy gắn mục CDROM/ISO với VMware Tools image của Windows.iso.
- Bước 3: Cũng trên máy ảo Windows 2k16 bạn cũng nên thêm 01 CDROM/ISO và gắn với bộ cài Windows Server 2016 DC iso để cài phân vùng Boot.
Đầu tiên Tạo một máy ảo với Windows Server 2016 (x64) làm hệ điều hành. đó là mẫu mới nhất từ danh sách thả xuống.
Liên quan đến lưu trữ, trình hướng dẫn tự động chọn LSI Logic SAS làm bộ điều khiển SCSI mới. Chúng ta sẽ sửa đổi điều này ngay lập tức và chúng ta sẽ chọn bộ điều khiển đĩa VMware Paravirtual SCSI. Sau đó, bạn có thể điều chỉnh kích thước đĩa đến một số dung lượng hợp lý (tôi chọn 120 Gb là phù hợp cho việc sau này cài nhiều dịch vụ ứng dụng dạng Hosting Web).
Bước tiếp theo là thay đổi loại Bộ điều hợp mạng mặc định là E1000 theo mặc định. Chúng tôi sẽ chọn VMXNET 3 hoạt động hiệu quả hơn (~ 10Gbps nội mạng ảo).
MẸO kỹ thuật: Kiểm tra bài viết của tôi – Các loại Bộ điều hợp Mạng VMware là gì? Cái gì là hiệu quả? để xem sự khác biệt giữa nhiều VMware NIC đó.
Lựa chọn thả xuống cũng đơn giản.
Bước tiếp theo sẽ là thêm một (01) ổ CD-ROM bổ sung vào máy ảo của chúng ta. Tại sao chúng ta lại làm việc này? Để làm cho cuộc sống của chúng ta dễ thở hơn?
Như bạn đã biết, bộ cài ISO của VMware Tools chứa trình điều khiển VMware PVSCSI và chúng ta sẽ cần trình điều khiển này để cài đặt thêm vào cho Windows 2016 Server, nếu không trình cài đặt sẽ không tìm thấy bất kỳ dạng ổ đĩa ảo (VD) nào để cài đặt hệ thống boot hoặc API.
Vì vậy, chúng ta chỉ cần thêm một đĩa CD-ROM thứ hai và đính kèm nó vào “Windows.iso” (từ gói công cụ VMware, đã có sẵn trong ESXi6.x, cái này cũng có sẵn ở VMware Workstation Pro hoặc Fusion MacOS).
Vì vậy, bây giờ, bạn sẽ có CD-ROM đầu tiên được đính kèm với ISO Windows 2016 và CD-ROM thứ hai được đính kèm với ISO của VMware Tools. Cả hai đều nằm trên cùng một kho dữ liệu (nó cũng có thể là các kho dữ liệu khác nhau, nhưng hãy làm cho mọi thứ trở nên đơn giản).
Khởi động máy ảo và hệ thống sẽ khởi động máy ảo vào Trình cài đặt của Windows Server 2016. Thực hiện theo các màn hình cài đặt. Khi bạn đang tìm nơi cài đặt hệ thống (sẽ không tìm thấy ổ đĩa), hãy nhấp vào Duyệt> Điều hướng đến thư mục “amd65” (như trong hình bên dưới) và cung cấp trình điều khiển PVSCSI có trên công cụ VMware ISO.
Hình: duyệt tìm trình điều khiển PVSCSI trên ISO (công cụ VMware) mà bạn đã gắn dưới dạng CD-ROM thứ hai. Có thư mục “amd64” ở đó.
Trên màn hình tiếp theo, bạn sẽ tìm thấy bộ điều khiển VMware PVSCSI.
Phần còn lại của Cài đặt vẫn giống như bạn có thể biết. Đừng quên cài đặt các công cụ VMware trong máy ảo này và sau đó xóa đĩa CD-ROM thứ hai khỏi phần cứng máy ảo.
Cuối cùng, bạn sẽ nhận được một máy ảo với bộ điều khiển lưu trữ ảo VMware. Và VMware nói rằng:
“Bộ điều khiển VMware Paravirtual SCSI là bộ điều khiển lưu trữ hiệu suất cao có thể mang lại thông lượng lớn hơn và sử dụng CPU thấp hơn. Các bộ điều khiển này phù hợp nhất cho các môi trường lưu trữ hiệu suất cao.”
Phần 2. Định nghĩa các ổ cứng ảo theo hiệu suất của ứng dụng có trong máy ảo:
Sau khi cài đặt xong HĐH Windows 2016 license DC, tiếp theo ta cần tối ưu hoá các ổ cứng khác bổ sung cho các Ứng dụng dịch vụ dạng Web Hosting:
Ví dụ:
Chúng tôi cần thêm 7 ổ VD (virtual Disk) khác cho 7 loại dịch vụ web hosting chạy cùng trên 1 VM
1. Định đạng “Format” ổ đĩa cứng nên chọn Allocation unit size là bao nhiêu?
Khi format ổ đĩa cứng, bạn sẽ được hỏi Allocation unit size (viết tắt: AUS). Vậy Allocation unit size là gì và bạn nên thiết lập giá trị Allocation unit size là bao nhiêu?
Nếu muốn format ổ đĩa cứng di động (external hard drive) 1TB ở định dạng NTFS. Ổ đĩa cứng này chứa các file nhạc và video. Khi đó tôi nên đặt allocation unit size là bao nhiêu? Tùy chọn trong phạm vi từ 512 bytes đến 64K.
Nếu bạn là “Standard User” theo định nghĩa của Microsoft, bạn nên để theo mặc định là 4096 bytes. Về cơ bản, allocation unit size là block size trên ổ đĩa cứng khi ổ đĩa cứng ở định dạng NTFS.
Về Block Size bạn có thể hiểu nếu Block Size có giá trị là 64KB thì tối thiểu sẽ có 64KB được ghi vào ổ đĩa trong mọi trường hợp, ngay cả khi đó là một file text có dung lượng 2KB. Vì thế giá trị này nên xấp xỉ tương ứng với kích thước trung bình của các file bạn dùng.
Nếu ổ cứng chứa nhiều file nhỏ ví dụ tài liệu Word, bạn nên để block size bé để tiết kiệm không gian ổ cứng. Nếu chứa nhiều phim ảnh hoặc nhạc, block size lớn sẽ cho hiệu năng cao hơn.
Mặc dù ngày nay dung lượng ổ đĩa cứng càng ngày càng cao hơn. Tuy nhiên lời khuyên cho bạn là nên thiết lập giá trị Allocation unit size theo mặc định.
2. Câu trả lời chi tiết hơn:
Xét về hiệu quả sử dụng không gian, allocation unit sizes càng nhỏ hiệu suất càng tốt. Nếu chọn AUS, trung bình một file sẽ lãng phí khoảng 1/2 không gian. Vì vậy 4K sẽ lãng phí 2K không gian và 64K sẽ lãng phí 32K không gian.
Tuy nhiên ổ đĩa cứng ngày nay có dung lượng khá lớn, do đó mức không gian lãng phí nhỏ này không đáng là gì và đây cũng không phải là yếu tố quyết định.
- So sánh 4K và 64K trong trường hợp lãng phí không gian trung bình (32K – 2K = 30K), nếu 10.000 file sẽ mất khoảng 300.000 KB hoặc khoảng 300MB.
- Thay vì suy nghĩ làm thế nào để sử dụng không gian hệ điều hành, tại sao bạn không nghĩ rằng bạn có 3K file và bạn muốn làm thành 2K.
- Với 4K AUS dữ liệu cần phải chia làm 2 Block, và không được để các Block này ở cùng nhau thì bạn mới có thể phân mảnh được.
- Với 64K AUS bạn nên chia làm nhiều Block để theo dõi và ít phân mảnh hơn. Block Size 16x tương đương với 1/16 số Block mà bạn theo dõi.
- Với ổ đĩa mà bạn lưu trữ hình ảnh, bài hát và vide, các file chiếm ít nhất 1MB, bạn sử dụng AUS lớn nhất. Với phân vùng khởi động, bạn nên sử dụng thiết lập mặc định của Windows (thường là 4K cho bất kỳ ổ NTFS nào có dung lượng nhỏ hơn 16TB.
Để tìm thông số Cluster Size trên ổ đĩa, sử dụng: fsutil fsinfo ntfsinfo X:
3. Thông số Cluster Size mặc định của NTFS, FAT và exFAT
Thông số Cluster Size mặc định của NTFS:
Thông số Cluster Size mặc định của FAT16:
Thông số Cluster Size mặc định của FAT32:
Thông số Cluster Size mặc định của exFAT:
Như vậy, cấu trúc các ổ cứng VD bổ sung được tổ chức theo phương pháp phân loại phù hợp dữ liệu
Phần 3. Cấu hình quyền remote RDP 3389 cho nhiều phiên trong cùng 1 máy tính:
Nghe thì có vẻ lạ phải không, tuy nhiên đã bao giờ bạn gặp trường hợp cần fix lỗi cho 1 user và khi bạn cần 1 môi trường tương tự với môi trường mà user đang gặp lỗi (cùng user/cùng máy tính). Trường hợp này thường gặp trong những lúc cần fix các lỗi liên quan tới group policy apply xuống users
Các bạn truy cập vào registry (Run->Regedit) và theo đường dẫn
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer
Tại giá trị fSingleSessionPerUser edit từ 1 thành 0 (Nếu không có thì tự tạo 1 DWORD value có tên fSingleSessionPerUser)
Restart máy để chắc chắn registry được apply
Trên đây mình đã trình bày xong cách active multi remote desktop và cách để 1 tài khoản có thể log in nhiều phiên trong cùng 1 máy tính
Lưu ý: Trong môi trường Cloud Edge cho phép điều khiển VDI remote riêng từng VM/ PC workstation hoặc Remote Apps thì rất cần vấn đề được phép có nhiều User session nhưng điều khiển đồng thời các VMs lại là 1:1 nên thường các VM windows này sẽ chi cho đồng thời 1 user device
1. Cấu hình cho phép điều khiển Remote Windows Server 2016:
Naturally, so you have to edit the registry to make it work.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]
Change “SecurityLayer” value to 1
Verify “UserAuthentication” value is 0
Đối với máy ảo “VM “thuộc các dịch vụ VDI/vGPU nên cấu hình IPv4 thuộc Network DHCP
Địa chỉ IPv4 là kiểu tĩnh, do máy chủ AD-DC có DNS server cấp, do đó hãy cấu hình Join Domain:
Khi máy ảo/ pc workstation đã join domain thành công, thì trên máy chủ AD DNS server sẽ có bản ghi A (host) cấp PTR trỏ giữa FQDN với IPv4 do DHCP cấp động.
Khi đó máy chủ Horizon View Connection Server hoặc XenServer hoặc SDDC hoặc Cloud edge sẽ cấu hình tự động/ bán tự động gọi theo FQDN, không ảnh hưởng tới việc thay đổi IPv4
- Nên tắt các ứng dụng MediaCenter của Windows hoặc AVN.exe của các công cụ remote khác khi máy ảo của bạn được sử dụng công nghệ remote RDP, các phần mềm này gây xung đột về CPU, GPU và Workload phần mềm không cần thiết.
- Xoá dòng REG_DWORD ehshell.exe hoặc thay giá trị về 0
2. Cấu hình W2k16 DC tối ưu khi Remote RDP và RemoteFX với OS có GPU:
Bước 1. Hãy remote console vào Win2k16
và chọn mục Settings > About > Advanced system Settings
Tiếp theo mở cửa sổ System Properties > chọn Tab: Advanced > Bấm nút: Settings…
Tiếp theo mở cửa sổ Performance Options > Tab: Visual Effects > Chọn Custom:
Chọn tick vào 2 mục: Smooth edges of screen fonts, Smooth-scroll list boxes
Sau khi bấm nút OK để đóng lại các cấu hình trên, bạn sẽ kiểm tra xem có thấy điều khiển mọi thứ GUI có nhanh hơn không
Bước 2. Hãy cấu hình để cho phép RemoteFX có GPU
– Trước hết chạy run: dxdiag để test kiểm tra xem bản OS windows đã hỗ trợ bản DirectX 12 chưa?
Nếu chưa thì phải cài thêm .Net Framework 4.6 trở lên để có bản directX v12
Sau khi hiển thị bản DirectX 12.
- Tiếp theo chuyển qua cấu hình tính năng cho phép dùng RemoteFX GPU
Bước 3. Enabling GPU Rendering for Microsoft Remote Desktop:
Some software—such as CivilGEO’s engineering software—uses powerful display graphics and the GPU (Graphics Processing Unit) for quick rendering of the display. However, running engineering software and other graphics-heavy software in a Remote Desktop environment can be challenging for the principal reason that Microsoft Windows Remote Desktop does not allow GPU rendering by default. Starting up the graphics-heavy software can generate errors as the software attempts to initialize DirectX or OpenGL GPU display drivers on the host computer.
This issue can be easily corrected by modifying the group policy on the host computer to allow the use of GPU rendering during a Remote Desktop session.
To fix this issue, follow these steps:
- Display the Windows Run dialog box by pressing the Win + R keys (the Windows key and the “R” key at the same time) on the keyboard. This will display the Windows Run dialog box.
- Type gpedit.msc in the Open entry and then press the Enter key or click the [OK] button.
- The Local Group Policy Editor application will be displayed. Using the navigation panel on the left side, select Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment > RemoteFX for Windows Server as shown below.
- On the displayed panel, right-click the Configure RemoteFX entry and then select Edit from the displayed context menu.
- The following dialog box will be displayed. Select the Enabled radio button entry and then click the [OK] button.
- Select and right-click the Optimize visual experience when using RemoteFX entry and then select Edit from the displayed context menu.
- Select the Enabled radio button entry and then click on the [OK] button.
- Select and right-click the Optimize visual experience for Remote Desktop Service Sessions entry and then select Edit from the displayed context menu.
- Select the Enabled radio button entry and then click on the [OK] button.
- Notice that the Configure RemoteFX, Optimize visual experience when using RemoteFX and Optimize visual experience for Remote Desktop Service Sessions Group Policies status are set to Enabled.
- From the navigation panel on the left side, select Remote Session Environment as shown below.
- On the displayed panel, right-click the Use the hardware default graphics adapter for all Remote Desktop Services sessions entry and then select Edit from the displayed context menu.
- Select the Enabled radio button entry and then click on the [OK] button.
-
Select and right-click the Configure compression for RemoteFX data entry and then select Edit from the displayed context menu.
- Select the Enabled radio button entry and then click on the [OK] button.
- Notice that the Use the hardware default graphics adapter for all Remote Desktop Services sessions and Configure compression for RemoteFX data Group Policies status are set to Enabled.
- Tổng kết các enabled trong mục Remote Session Environment
- Restart the host computer and the changes made to the Group Policy will take effect. The engineering software can then be operated from the host computer using Remote Desktop.
3. Các bước làm tối ưu tốc độ chạy của Win2k16 Physical PC/Workstation:
Bước 4. Disable programs that run on startup:
The most common reason your Windows 10 PC may feel sluggish is you have too many programs running in the background – programs that you may never use, or only rarely use. Stop them from running; you will notice your windows computer will run more smoothly.
- Mở Task manager bằng tổ hợp bàn phím Ctrl+Shift +Esc hoặc chọn chuột phải ở Task bar
- Go to the startup tab.
- There Identify the programs that you are not using regularly and do not want to run automatically.
- Disable them in the status section.
- Make sure do not disable your programs published by Microsoft Corporation.
Bước 5. Disable Unwanted Startup Services
Also after Disable Startup, programs disable some unnecessary services, which run on windows startup and on background use system resources and cause windows running slow.
- Press Windows + R, type msconfig and ok
- This will open the system configuration window,
- Move to the services tab and select the Hide all Microsoft services check box.
- Uncheck all unnecessary services you want to disable and click Apply, Ok To make save changes.
This will ask for system restart to make save changes. Save any working data and restart windows. This will help to speed up your windows 10 performance while startup.
Bước 6. Disable visual effects
Start with windows vista and 7 Now Windows 10 also have some nice eye candy shadows, animations, and visual effects. Another reason for your PC to be running slow can be visual effects and animations that increase the burden on the system resources. On fast, newer PCs, these do not usually affect system performance. However, on slower and older PCs, they can exact a performance hit.
- Press Windows + R, type Sysdm.cpl hit the Enter key.
- This will open system properties with several tabs.
- Click on the Advanced tab, and under Performance click Settings.
- Now On the Visual Effects tab, select Adjust for best performance.
- Click apply and ok to make save changes.
Kill bloatware
One of the biggest factors that slow down any Windows computer is unwanted software, aka bloatware. They take up CPU, system resources, book disk and memory space unnecessarily hindering other applications to perform at their full potential.
To remove bloatware or unused applications, follow these steps:
- Press Windows + R, type appwiz.cpl and ok
- This will Programs and Features and display all installed app list.
- Select the unused application and click Uninstall/Change to remove it.
- Follow the instructions in the uninstall dialog boxes to uninstall the software
Bước 7. Run Disk Cleanup
Occasionally you may need to clean up your computer in order to get rid of old software, temporary objects, and junk files. Some software programs might not be completely uninstalled and the leftover files can cause performance issues. Try Disk CleanUp for this purpose.-
- Press Windows Key + E and select this PC
- Right-click on the C drive and select Properties.
- Click the General tab.
- Now click on Disk Cleanup.
- Select all items from the list box and then click OK.
Bước 8. Disable Background Apps
In Windows 10, many background activities happen to collect information regarding your location, typing behavior, account info, etc. These apps run unnecessarily in the background and take unnecessary system resources, heat up your PC and reduce its overall performance. That is why it is better to disable background apps to speed up your Windows 10.
- Press Windows + X and select Settings hoặc bấm chuột phải khi chọn nút Start
Chọn Setting menu bar
- Click Privacy, then Background apps
Bước 9. Disable Search Indexing
Windows Search indexing Feature improves the search tool’s responses and speeds up searching in Windows 10. However, it weakens the performance as it runs in the background and utilizes many system resources. Owing to this reason, if you do searches occasionally, then it is best to disable it.
Follow the below steps to disable search indexing:
- Press Windows + R, type services.msc and ok
- In the services list, look for Windows Search and double-click it
- In the new window, for Startup type, select Manual or Disabled and then click the OK button to save your changes
Bước 10. Adjust Virtual Memory
Windows having two types of memory physical memory (RAM) and virtual memory know as (paging file). With a low RAM, it is difficult to handle multitask smoothly on Windows 10 computers. The recommended solution for this is to upgrade the RAM or another option is to Adjust the virtual memory (allocate more virtual memory) to optimize the windows performance.
Click on start menu search type performance and select Adjust the appearance and performance of windows.
This will open performance options popup.
Next move to Advanced Tab and then click on the Change button under Virtual Memory.
In the new window that appears, uncheck automatically manage paging file size for all drives.
Select the C: drive and then click the radio button for Custom size
Now set the Initial size (MB) to the size of your RAM and Maximum size (MB) to double the size of your RAM (for ex., if the size of the RAM is 4GB, set the initial size to (1024 x 4 = 4096) 4096 MB and maximum size to 8192 MB). Now click the Set button and then apply, OK to make save changes. This will ask for system restart to make save changes effective save any work and restart windows.
Bước 11. Launch the Windows troubleshooter
Windows 10 has a very useful, little-known tool that can sniff out performance problems and solve them. . If there are issues affecting your PC but you cannot find them yourself, then it is easy to find and fix those using the troubleshooting tool. To launch it, open control panel -> small icon view click on troubleshooting -> Now under system and security click on Run maintenance tasks.
A screen titled “Troubleshoot and help prevent computer problems” will appear. Click Next. The troubleshooter will find files and shortcuts you do not use, identify any performance and other issues on your PC, report them to you and then fix them. Also, Run the other tools there fix problems with windows update and improve power usage to fix problems and improve windows system performance.
Update Drivers Regularly
Incomplete driver installation and outdated drivers are serious problems that gradually slow down your computer. Device manufacturers release new updates to fix internal bugs and improve system performance. Regularly updating the drivers can improve your computer’s performance. To manually update drivers
- Type device manager on start menu search and hit the enter key. This will open the Device Manager and all installed drivers list.
- Right-click any device with an exclamation mark (You have to expand each entry to reveal yellow exclamation marks).
- Select Update Driver Software.
Bước 12. Switch to High performance power plan
Windows 10 ships with three predefined power plans, including Balanced, Power saver, and High performance to optimize the power usage of your device. If you are looking to boost performance, you should be using the “High performance” option, which allows your computer to run faster.
To change the current power plan on your device, do the following:
- Open Control Panel.
- Click on Hardware and Sound.
- Click on Power Options.
- Select the High performance power plan.
Repair system files
If you are experiencing performance issues because of corrupted system files, you can use the Deployment Image Service and Management Tool (DISM) command-line tool to fix your current installation without the need to reinstall Windows 10. In the case, that DISM is unable to repair system files, Windows 10 also includes the System File Checker (SFC) command-line tool, which can download and replace corrupted system files using Windows Update.
Bước 13. Using DISM
Mở CMD chạy bằng quyền “Run as Administrator”
- Open the command prompt as administrator, sau đó gõ lệnh: Dism /online /cleanup-image /restorehealth
- Đợi hệ thống quét và xử lý 100% hoàn thành.
- Now type command sfc /scannow and hit enter key to run system file checker utility,
- Restart Windows after completing the scanning process, you may notice the difference.
Bước 14. Upgrade to a faster drive (tuỳ chọn do điều kiện kinh tế)
If you have an older computer, the biggest performance bottleneck you are likely to face is the hard drive, as traditional rotating platter drives typically perform much slower than any other piece of hardware. Upgrading to an SSD is perhaps the best thing you can do to increase system performance.
Enable Write Caching for Hard Disk Drives
You can boost computer performance by enabling Disk to write caching. It boosts performance by using the RAM to collect & store small write commands as opposed to storing them on your hard drive. This allows applications to run faster by allowing them to proceed without waiting for data write-requests to be written to the hard disk.
Bước 15. Turn Disk Write Caching Off (áp dụng cho máy Ảo “VM Guest OS”):
Đối với máy ảo thì ổ cứng sẽ không dùng Disk Write Caching
Run System File Checker
Also, Some Time Corrupted, Missing System files Cause different Errors and make windows System running slower. Especially after the Recent, Windows upgrade. We Recommend run Windows SFC Utility, which Scans missing, damaged System Files if found any the utility Restore them itself from a special cache folder located on %WinDir%\System32\dllcache.
Note: If Running SFC Utility Results windows resource found corrupt files but was unable to fix some of them then run the DISM Tool. Repair The System Image and Enable System File Checker to do its job.
Bước 16. Check Disk Drive Errors:
Also, Some Times Disk Drive errors, Bad Sectors Cause the system not responding, Files and Folders not opening etc. We recommend Running the CHKDSK Utility Which scans and fix Disk Drive Errors.
Để chạy được công cụ CHKDSK Utility hãy mở CMD bằng quyền run as administrator
Gõ lệnh: chkdsk /f /r /x and hit Enter. Press Y and Restart Windows, Wait for 100% complete the Scan and repair process.
Khi nhấn phím enter, hệ điều hành windows tự reboot và thực thi lệnh kiểm tra ổ cứng now check the PC/Laptop running smoothly.
Phần 3. Công cụ điều chỉnh chất lượng cấu hình VM OS Windows 2016 và ổ cứng có kịch thước AUS hiệu quả?
Tham khảo: Ngoài 4 tiêu chuẩn kỹ thuật sau
- VMware Transparent Page Sharing (TPS) Explained
- What is Storage Replica? – Windows Server 2016
- What is Veeam Proxy?
- What is VMware CPU Ready?
Chúng ta cần dùng thêm công cụ tối ưu hoá các cài đặt cấu hình trong OS Guest Windows 2016, chúng ta có thể truy cập vmware.com và download công cụ:
Chạy phần mềm Windows OS Optimization Tool và chọn Template: Windows 10, 11và cho Windows Server 2016, 2019, 2022:
Khi bấm nút Phân tích “Analyze” hệ thống sẽ cho ra kết quả:
Các bạn nên điều chỉnh các lựa chọn trước khi chạy tối ưu:
Lưu ý Quan trọng:
- Đây là máy ảo “VM” và là máy chủ cung cấp dịch vụ Windows 2016 chạy trên nền VMware vSphere 6.x /7.x và không có các mục đích chạy dịch vụ có WLAN, Wi-fi, RAS, OpenVPN, nên Template bạn lựa chọn sẽ áp dụng được ngay lập tức.
- Trường hợp muốn chạy tool này trên máy Laptop, máy cá nhân hoặc Workstation hoặc máy tính vật lý có WLAN, wi-fi hoặc mạng LAN có VLAN “Network isolation DHCP/DNS automatic Discovery…” hết sức lưu ý là phải điều chỉnh lựa chọn nhớ bỏ chọn “Disable IPv4/ipv6” nhớ bỏ chọn “Turns off Wi-Fi sensor…”
Sau khi chạy Optimize, nên lưu lại kết quả để trong qua trình tiếp theo sử dụng còn đối chiếu và điều chỉnh lại nếu cần:
Tra cứu lại lịch sử tool đã chạy để theo dõi hoặc hiệu chỉnh các lần chạy tối ưu sau này (nếu cần):
Cuối cùng, chúng ta nên chạy thêm công cụ kiểm tra hiệu suất nguồn năng lượng cung cấp cho CPU, nhiệt độ, tốc độ quạt và hiệu suất đọc ghi ổ cứng:
Bạn nên mở CMD “run as administrator” và nhập lệnh: powercfg /energy
Kết quả được lưu ở file: energy-report.html hãy đọc kiểm tra xem các vấn đề nguồn năng lượng có đáp ứng, những thông tin cấu hình chưa phù hợp để hiệu chỉnh.
Chúc các bạn quản trị, triển khai máy chủ ảo trên nền VMware vSphere hiệu quả cao, An toàn và ổn định!