Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dual E5-2690 with RAMDisk is slow compare to others #41

Open
zeroarst opened this issue Jun 8, 2021 · 17 comments
Open

Dual E5-2690 with RAMDisk is slow compare to others #41

zeroarst opened this issue Jun 8, 2021 · 17 comments

Comments

@zeroarst
Copy link

zeroarst commented Jun 8, 2021

I have a server which has dual E5-2690 I think it is the one: https://ark.intel.com/content/www/us/en/ark/products/64596/intel-xeon-processor-e5-2690-20m-cache-2-90-ghz-8-00-gt-s-intel-qpi.html
Physical cores: 8x2, threads: 16x2
It has 128GB DDR3 RAM, I created a RAMDisk with ImDisk Toolkit. Allocated 110GB for it. Path is /mnt/r/
Also two 2T M.2 NVME SSD. /mnt/d/ and /mnt/e but I only used one for this test.

I used WSL2 and the result was as below. I didn't even finish it as I think it was slow compare to others so I stopped it. Tried both 16 and 32 threads, not much different it seemed.

Number of Threads: 32
Number of Sort Buckets: 2^7 (128)
Pool Public Key:  xxxxxx
Farmer Public Key: xxxxxx
Working Directory:   /mnt/d/
Working Directory 2: /mnt/r/
Plot Name: plot-k32-2021-06-08-21-45-5e789c389f87f9e23df0c4a2af0b1e3558d369e55f3e2e162f4e12963c591b46
[P1] Table 1 took 170.16 sec
[P1] Table 2 took 803.987 sec, found 4294975885 matches
[P1] Lost 8503 matches due to 32-bit overflow.
[P1] Table 3 took 945.028 sec, found 4295069307 matches

I compared to my big brother's plotting on his PC, which has CPU 5800x. He dose not even use RAMDisk. However, the plotting speed is still faster than mine. When his PC was plotting at phase 1, its CPU has nearly 100% usage...
1623162732325

Mine did not hit 100% with 32 threads and even 50%. I didn't take the screenshot, might test again and do it tomorrow.

I also got another PC, which has the same problem. Somehow the CPU usage is just not 100%.
roy_new_pc_chia_plot

Is it normal? Did I miss anything..?

@SebMoore
Copy link
Contributor

SebMoore commented Jun 8, 2021

DDR3 can't be helping, but WSL2 might have something to do with it as well. Have you tried compiling natively for Windows (might be a bit difficult).

@zeroarst
Copy link
Author

zeroarst commented Jun 8, 2021

I compiled in WSL2, was not too difficult. Maybe I will try to compile again tomorrow..
Are you saying DDR3 is the problem?

@GTANAdam
Copy link
Contributor

GTANAdam commented Jun 8, 2021

DDR3 can't be the problem, it can handle 10667 MB/s @ 1333, it seems like you have a software bottleneck. why not use Linux?

@hpglw
Copy link

hpglw commented Jun 8, 2021

I think you should use ubuntu

@Hardcore-fs
Copy link

start with a lower thread count, you are throttling your threads.... and chewing it up in thread/context switching....

I wish people would get off this windows crap if they want to play with computer hardware...
drop in an old shitty scrap HDD on a spare cable, unplug your windows drive and boot linux. CLI
DDR3 is NOT the problem. here .. WINDOWS is the problem.

I run a system with DDR3 and a 15 year old cpu and can beat many of these figures, my issue is bottle neck on the ssd.... NOT ram.

@zeroarst zeroarst changed the title Dual E5-2690 with RAMDisk is slow compare to others. Dual E5-2690 with RAMDisk is slow compare to others Jun 8, 2021
@SebMoore
Copy link
Contributor

SebMoore commented Jun 9, 2021

I compiled in WSL2, was not too difficult. Maybe I will try to compile again tomorrow..
Are you saying DDR3 is the problem?

Yes sorry I meant instead of compiling for Linux on WSL2, compile natively for windows. This can be done with something like minGW, but as I can now see in #38, that might be a bit too hard. Have you considered trying to boot Ubuntu from a USB stick? That might at least demonstrate whether or not WSL2 is to blame.

@Smallthing
Copy link

this make me laugh
/mnt/d/
if it like my thought,your use wsl2's automount windows drive d: which is a ntfs drive or so and io with something like network.so the io though is very low.
can you plot inside the wsl2 with ext4 or xfs,(and wsl2 even can mount ext4 xfs raw disk now)

@Smallthing
Copy link

Smallthing commented Jun 9, 2021

sorry for chinese because i have something cant metion in my english
让我忍不住笑是因为你不知道wsl2和win侧的io对接的问题。。。却可以编译出来。。。

@SebMoore
Copy link
Contributor

SebMoore commented Jun 9, 2021

Ohh haha I actually had no idea about /mnt and the network share... that is hilarious! So, future note for anybody wanting to plot on Windows: do NOT try and plot on a drive that is automatically mounted at /mnt/. The performance will be horrific. Instead, you must either stop using windows altogether, compile the program natively for Windows, (as I said above, not easy), or create a linux filesystem within WSL2. This issue is mentioned here: microsoft/WSL#873

@zeroarst
Copy link
Author

zeroarst commented Jun 9, 2021

sorry for chinese because i have something cant metion in my english
让我忍不住笑是因为你不知道wsl2和win侧的io对接的问题。。。却可以编译出来。。。

Haha, I don't know that actually. Will try ext4 or xfs.
哈 我確實不知道額,業餘的編程人士啊,見笑了。我會試試ext4或xfs

@PeratX
Copy link

PeratX commented Jun 9, 2021

Try WSL1 for better filesystem performance
WSL1对于跨文件系统更加友好

@SebMoore
Copy link
Contributor

SebMoore commented Jun 9, 2021

Noooo don't do that - just use linux - please it's not worth it - WSL1 has a lot of problems - large chance you will run into some compilation issue. Just try booting Ubuntu from a USB.

@zeroarst
Copy link
Author

zeroarst commented Jun 9, 2021

Dose that mean I should also create RAMDisk inside WSL2?

@Smallthing
Copy link

Smallthing commented Jun 9, 2021

Dose that mean I should also create RAMDisk inside WSL2?

YES
it just a lightweight hyper-v vm so you can do 90% things in it (and more then hv you can use wslg)

@PeratX
Copy link

PeratX commented Jun 9, 2021

Noooo don't do that - just use linux - please it's not worth it - WSL1 has a lot of problems - large chance you will run into some compilation issue. Just try booting Ubuntu from a USB.

I mean WSL1 is just a better environment to test it. instead of using it in production.

@merakliseyit
Copy link

I have a similar server. dl380 gen9

my server is 2x 2697A v4 + 384gb ddr 4 2133 mhz 4x 2tb nvme
I'm running madmax on windows. (I don't know anything about linux, ubuntu) phase 1 duration is 2400 seconds.this is very bad
I tried many alternatives.
tmp1=nvme / tmp2=nvme
tmp1=nvme / tmp2= ramdisk
tmp1=ramdisk / tmp2=ramdisk
There is no difference. even when i use ramdisk the time is extended by 4 minutes. what is the reason of this? I've seen it finish in 1800 seconds with servers much older than my server.where is the error please help

@leonidbkh
Copy link

Your brother's 5800x is not working on full speed, i have better results. I think its cause of slow nvme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants