News for hackers. Stuff that matters.
Re:Windows gets a new terminal by zenlot on Monday May 06, 2019 @12:44PM (#19841128)
A bit off topic, but how does one use Windows 10 now without sacrificing on speed / resources? Recently purchased Lenovo E480 and E585, they all come with stock Windows 10, so before getting Linux in, I've tested it and it is basically unusable: disk/cpu usage is constantly jumping between 80-95%, fans are always turned on producing a lot of noise. Is this common to all laptops with Windows or just Lenovo?
Re:Windows gets a new terminal by mceachen on Monday May 06, 2019 @01:01PM (#19841360)
It's Windows, but Lenovo bloatware doesn't help.

I've never really used Windows as a daily driver until I had to do cross-platform development for PhotoStructure[1]. My windows box is a recent XPS 15 with an m.2 SSD and core i7. My Mac is a 10 year old 17" MBP. My linux box is the cheapest core i5 I could get 2 years ago with an mSATA SSD (not m.2).

Here's this morning's CI job timings (running the same 2K tests that exercise a reasonable mixture of CPU, process management, and disk I/O):

Windows 10 (XPS 15):

  2384 passing (2m)
  Done in 134.95s.
Mac (10 year old MBP on 10.11):

  2365 passing (2m)
  Done in 108.12s.
Ubuntu (i5, LTS 18.04):

  2365 passing (1m)
  Done in 74.16s.

I'd suggest backing up your HD, making a USB stick with OEM Windows 10, and reinstalling just Windows (with no Lenovo bloatware): https://support.microsoft.com/en-us/help/4000735/windows-10-...

[1] https://blog.photostructure.com/introducing-photostructure/

Re:Windows gets a new terminal by chipperyman573 on Monday May 06, 2019 @01:33PM (#19841744)
FYI reinstalling windows, even with a fresh OEM USB, does not guarantee it will be a fresh copy of windows if there is bloatware living on the BIOS https://www.techdirt.com/articles/20150812/11395231925/lenov...
Re:Windows gets a new terminal by josteink on Monday May 06, 2019 @02:21PM (#19842229)
All vendors caught doing this has been shamed into rolling out a BIOS-update without the embedded crap ware.

That said, this is really a Windows-feature being misused by OEMs and as a user I would be interested in having a way to disable it.

Re:Windows gets a new terminal by Goz3rr on Monday May 06, 2019 @01:54PM (#19841967)
Just saying i5 or i7 is kind of meaningless, because it can be anything between a laptop dual core to a desktop octa core these days.

What's in the 19 additional tests Windows is running? Is the Linux box a laptop as well? I'm personally having trouble believing the Core 2 Duo in your MBP outperforms a modern i7, even after potential Windows overhead.

Re:Windows gets a new terminal by mceachen on Monday May 06, 2019 @02:41PM (#19842446)
> Just saying i5 or i7 is kind of meaningless

Yeah, agreed, but these are single-core tests and even the max clock speed of intel chips doesn't seem to correlate exactly with performance. Here's more CPU details, though:

My XPS 15 is HT 4-core Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz.

The MBP is https://apple-history.com/mbp_17_mid_10. HT dual-core i5 ("Arrandale") @ 2.53 GHz. It's slow AF.

The ubuntu box is HT dual-core Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz

> What's in the 19 additional tests Windows is running?

The 19 additional tests are windows-specific path validation unit tests, and take ~10ms total.

> Is the Linux box a laptop as well?

No, it's on a 3 year old cheapo mini ITX mobo.

> I'm personally having trouble believing

Me too. I've nuked and paved this box a couple times, thinking it was bad interactions with cygwin or MSYS or minGW. CPU bound stuff (like ffmpeg transcoding) is closer across windows and linux, but opening files and forking processes on Windows is just hella slow (even on my desktop windows machines).

Re:Windows gets a new terminal by Goz3rr on Monday May 06, 2019 @04:05PM (#19843232)
A minor correction, the i5-6500 is a non HT quad core.

In practice, the i5-6500 is faster than the i7-6700HQ. The i5 enjoys a slightly higher turbo clock speed and less restrictions in TDP, cooling and power supply allowing it to run faster for longer so it's expected to be the fastest, but that doesn't explain the entire gap.

Have you tried using WSL instead? I found it to do excellent in CPU based tasks, but the file IO performance was a bit lacking. Apparently in the next release (along with this new terminal) filesystem performance should improve by a significant amount. Although I would still expect it to be slower than running on Windows/NTFS natively

Re:Windows gets a new terminal by mceachen on Monday May 06, 2019 @04:55PM (#19843769)
> A minor correction

Interesting. TIL, thanks. (I looked at /proc/cpuinfo on my i5, saw 4 entries, and assumed HT dual core).

> Have you tried using WSL instead?

These are tests to ensure PhotoStructure works on stock Windows machines, so I can't use WSL.

> filesystem performance should improve by a significant amount

That'd be awesome. Where'd you read that?

Re:Windows gets a new terminal by Goz3rr on Tuesday May 07, 2019 @03:10AM (#19847233)
> In fact, Microsoft is promising developers “twice as much speed for file-system heavy operations, such as Node Package Manager install."

From here: https://venturebeat.com/2019/05/06/microsoft-windows-termina...

Re:Windows gets a new terminal by TickleSteve on Monday May 06, 2019 @03:08PM (#19842671)
If you're using Cygwin or Msys.... theres your problem. They're notoriously slow emulations of posix syscalls that don't translate well to Windows.

Fork & fs operations, certainly.... nothing to do with Windows itself.

Re:Windows gets a new terminal by masklinn on Monday May 06, 2019 @03:47PM (#19843042)
> Fork & fs operations, certainly.... nothing to do with Windows itself.

Both of these operations are known to be very slow specifically in windows. The former's the reason why windows has always strongly favored thread-based concurrency (whereas unices tend to favor process-based concurrency)[0], the latter is well know of NTFS, it deals especially badly with lots of small files.

[0] even excluding making the entire thing blowing its gasket as Bruce Dawson triggers with appalling regularity, in fact in one of his posts he specifically notes in the introduction that windows is notorious for its slow file and process operations: https://randomascii.wordpress.com/2018/10/15/making-windows-...

Re:Windows gets a new terminal by mceachen on Monday May 06, 2019 @04:10PM (#19843282)
FWIW these are mocha suites running under nodeJS, so if v8 had a really bad windows subsystem, that'd explain it, but as others have stated, the performance difference correlates with other cross platform runtime environments as well.
Re:Windows gets a new terminal by turndown on Monday May 06, 2019 @05:36PM (#19844143)
I thought that i5s+ were all quad core or better, is this not the case?
Re:Windows gets a new terminal by Sohcahtoa82 on Monday May 06, 2019 @06:42PM (#19844688)
The first gen i5 was dual-core. Also, all the mobile i5 CPUs were only dual-core until the 6th gen.

https://en.wikipedia.org/wiki/List_of_Intel_Core_i5_micropro...

Re:Windows gets a new terminal by potrebitel on Monday May 06, 2019 @02:08PM (#19842095)
Sort of did that for a brand new X1 Carbon: 1.created a usb bootable image from MS's tool to install new windows

2.installed from scratch

3.the windows setup only put essential Lenovo stuff - hotkeys and thermal management.

4. ???

5. Profit [1]

It made a real difference to disable the automatic windows updates and run them manually. There were no bloatware installed on my unit.

[1] A joke from the memes, its all good otherwise.

Re:Windows gets a new terminal by x0n on Monday May 06, 2019 @02:15PM (#19842174)
Are you running the CI on windows 10 under WSL, or native?
Re:Windows gets a new terminal by mceachen on Monday May 06, 2019 @02:42PM (#19842457)
Native. I uninstalled WSL and am not running any VMs on my CI box, just to make sure Windows isn't busy doing anything else.
Re:Windows gets a new terminal by dessant on Monday May 06, 2019 @12:51PM (#19841226)
This is one of the best configuration scripts to make your Windows snappy, it's fully customizable and easy to use: https://github.com/Disassembler0/Win10-Initial-Setup-Script
Re:Windows gets a new terminal by eltoozero on Monday May 06, 2019 @12:56PM (#19841286)
Re:Windows gets a new terminal by koonsolo on Monday May 06, 2019 @12:51PM (#19841229)
I switched back to Linux for this very reason.

I have an Asus with Windows 10, and after a day of use, it becomes unbearably slow. It seems there is a lot of activity on the HD. I tried to diagnose this, but was never able to pinpoint a specific process that was slowing it down.

The only solution was to restart it. Web browsing always had a huge delay.

Linux on the other hand: startup is fast, use is fast, runs for months without any restart.

Re:Windows gets a new terminal by majkinetor on Monday May 06, 2019 @02:24PM (#19842275)
You can fix windows. My media centar runs on 10 for months. Just disable updates (not easily done nowdays tho) and store service which is resource hog.

Use some debloater to remove other stupid stuff. Then it will fly.

Re:Windows gets a new terminal by chipperyman573 on Monday May 06, 2019 @12:50PM (#19841218)
It might have just been doing windows updates. I've never had problems with it but I've read online that it can spike disk/cpu usage on some hardware configurations. If you just bought it, it might have been doing a major version upgrade (1809->1903 for example)
Re:Windows gets a new terminal by leeter on Monday May 06, 2019 @01:20PM (#19841601)
Depends on a lot of things including bloatware and anti-virus in particular which can slow a machine to an absolute crawl.

In theory windows can be faster than Linux in some cases; but usually isn't because most developers don't actually take advantage of those APIs and just do everything synchronously which is stupid slow on Windows. That said Linux is catching up super quick in terms of those sorts of things.

EDIT: grammar

Re:Windows gets a new terminal by alkonaut on Monday May 06, 2019 @02:07PM (#19842085)
Windows 10 will take a long time to update and initialize everything. If I power down my machine for a few weeks it will take a few hours for it to calm down when powered on again (I’m on the insider release cycle so there is almost always a major upgrade of some kind). Lenovo stuff doesn’t help, but I suspect things like store app upgrades (whoever needs those?), Windows updates, search indexing, AV scans.
Re:Windows gets a new terminal by romwell on Monday May 06, 2019 @01:03PM (#19841384)
I have a Core 2 Duo desktop from 2008 with 3GB RAM which I almost never reboot manually running Windows 10, and I can't replicate your experience (the fans are always on, but it's a desktop).

Granted, it has an SSD, so disk access is not slowing the machine down as much, but so do all the computers today.

Re:Windows gets a new terminal by mrmuagi on Monday May 06, 2019 @02:01PM (#19842028)
You basically need to de-bloat your computer from Lenovo's software and also window services (compatibility telemetry was a prime example of an offender). To help with the fan, try undervolting the CPU, my T470p got around -10 to -15mv iirc that helped with throttling and fan/heat a ton.
Re:Windows gets a new terminal by Frenchgeek on Monday May 06, 2019 @12:52PM (#19841245)
My Acer aspire 7 is pretty useable... once you remember that Windows 10 is not truly done booting until it has checked for updates. (I also disabled everything I could too, including the bundled software)
Re:Windows gets a new terminal by jhallenworld on Monday May 06, 2019 @01:43PM (#19841859)
Yeah, at one point they put in a lot of work to get the power on to Windows screen up time fast. But it's a scam.. Windows is not done booting until the hard drive drops below being pegged at 100%, which takes another 4 minutes.
Re:Windows gets a new terminal by Sohcahtoa82 on Monday May 06, 2019 @06:49PM (#19844731)
They also greatly increased boot speed with their hybrid shutdown method. Since Windows 8, when you tell the system to shut down, it actually just closes all your programs and then hibernates the kernel.

Learned this the hard way when I was interning as a tester for an audio driver. Sometimes the driver would get into a bad state, and you could power cycle the system and the driver would still be a bad state. I created a batch file that would run the shutdown command with a flag to initiate a complete shutdown rather than a kernel hibernation, which was necessary to reset the state of the driver.

Re:Windows gets a new terminal by discreditable on Monday May 06, 2019 @12:58PM (#19841323)
Download the drivers you need then do a clean install of Windows from Microsoft (not Lenovo) media. OEMs are bad about loading systems with garbage.
Re:Windows gets a new terminal by BinaryIdiot on Monday May 06, 2019 @03:22PM (#19842804)
I'm guessing bloatware? I haven't purchased a non-genuine Windows machine in at least a decade at this point so I've never run into this type of issue.

The best way to get a Windows computer is either building it or buying it directly from Microsoft so you can get the genuine versions that have little to no bloatware.

Re:Windows gets a new terminal by Schlaefer on Monday May 06, 2019 @02:08PM (#19842094)
E480 here. I didn't see unusual CPU/IO. Did you let it settle for a day? Noise: Lenovo doesn't enable Speed Shift and the firmware provided fan control is shit. If you want to fix it: Get a tool like tpfan and tweak the fans. Get ThrottleStop to enable Speed Shift and undervolt a bit. - Noise was pretty much fine on Linux out of the box. I just undervolted because why not.
Re:Windows gets a new terminal by int_19h on Tuesday May 07, 2019 @04:39AM (#19847562)
Re:Windows gets a new terminal by 24gttghh on Monday May 06, 2019 @01:07PM (#19841438)
Re:Windows gets a new terminal by majkinetor on Monday May 06, 2019 @02:23PM (#19842252)
Re:Windows gets a new terminal by DanBC on Monday May 06, 2019 @02:08PM (#19842099)
Check disk indexing.