Wed, 20 Oct 2021

11:09 AM - The problem with M1 Macs

I think a lot of folks aren't seeing the segmenting issues with M1 Macs, particularly the new pro/max variants. Let's talk about that for a minute.

First, the good. Apple did make an extremely fast laptop processor. They've got a fast ultrabook part in the M1 that's as fast as a ryzen 2700 desktop chip. They've also got this new CPU line that is some value faster with a nvidia mobile class GPU equivalent minus all the nvidia features. (well we should really compare these to amd parts)

Apple did add most ports back except ethernet.

Where's the problem?

First, there's the RAM issue. Now M1 fans will be quick to tell you the M1 laptops will hit swap so fast you barely notice it's happening. They love the swap speed. The problem of course is that swap use kills SSDs. Apple tends to ship fairly decent SSDs, but they're not enterprise grade. They will wear out eventually. Most consumer SSDs are rated for 5 years for the average person. This is often based on the size of the drive and being written multiple times. Many drives are sold with TBW values where we know when it should roughly wear out. Apple doesn't release this information. We have no idea when the drive will fail. On an M1 that is fatal due to the SoC design. Sure there are some EE folks who think they can possibly solder a new one on but most of us can't do that. It's effectively dead and when EOL apple won't replace/fix it either. The original M1 macs biggest problem aside from monitor support and ports was the lack of RAM. 1 6GB is fine for casual computer users who use facebook, office and even entry level youtube content types or front end web developers who only use node and vscode. It doesn't work for folks that need VMs or run a lot of docker containers and do backend development in java or other languages. They need a bit more.

Corporate developer specs are often now requiring 32GB or 64GB of RAM depending on the environment. My current employer requires 32GB for devs and my last job was 64GB. Many other folks I talk to are in the same boat. That means the original M1 was useless for most companies that needed dev systems. Enter the max/pro chips. They offer 32GB and 64GB variants that fit this problem. The issue there is the PRICE. When you really only need M1 performance plus 32GB of RAM, it hurts to go up to 2900 dollars to get it. Large companies will just suck it up and pay if they want macs of course. For smaller shops, you're better off buying an amd or intel laptop though.

Let's talk chip performance. From a laptop perspective, apple knocked it out of the park. We can all pretty much agree with that. In a desktop context, apple has failed so far. Granted they haven't release the higher tier iMac or Mac Pro yet. They are still working on this. The entry level iMac is useless for the same reasons mentioned above. It's a ryzen 2700 speed wise and no ram. It's fine for folks that don't do software development or other pro tasks. It's not an Intel or AMD killer though. It can't be at ryzen 2700 speed. The new chips are likely to get used in the iMac 27" or whatever replacement we're going to get. If they aren't overclocked or given extra cooling, they're likely to beat out the current intel parts shipped in iMacs but certainly not going to touch higher end alder lake parts coming from Intel or 5000 series ryzen. Apple would need to 3x the performance of the original M1 part to get to current AMD specs. 2x gets them past most of the 3000 series, with the exception of the 3900x and 3950x. in short, apple has likely beat amd's older 8 core parts but not their current parts. Now folks are thinking... but apple did kill it on performance per watt. That metric doesn't matter in this discussion because we're talking about actual performance. If you need X performance, a part that can't hit it doesn't matter even if it barely sips electricity. It failed to hit it. In a laptop context, battery life is helpful up to a point. Apple went way past what's needed. 4-8 hours is really the sweet spot for most people. 8 is basically "all day" for most workloads. Anything past that, and they should have overclocked the CPU a bit and used some extra juice. Back to desktop workloads. Apple should be competing with AMD, not Intel right now. That's who to beat. If Apple released a desktop faster than a 5950x, that would certainly be a huge deal. It's also needed to get past that performance for the mac pro anyway. That's the goal for apple, to scale up to xeon/threadripper territory for pro use. Apple is not hitting that goal right now. They may in the future, but right now it looks like their content making something as fast as a 10th gen intel chip. You might be thinking I'm being unfair because apple hasn't released that yet. Perhaps, but remember Tim Cook likes to reuse parts. The M1 iMac and MacBook Pro use the same chips. He'll likely do that with the new iMac 27/30 too.

Why is it a big deal if apple catches up to AMD? Well Apple has a process node ADVANTAGE right now. They're on 5nm. AMD is still kicking their butt on an older process node. Intel is still competitive on desktop with their older process node and have 10nm parts coming (well pre rebranding) with alder lake as well as big.little. If Intel and AMD can stay ahead of apple with a process node deficit, it means that either Apple is too fixated on mobile to ever make a performant desktop part or that they simply can't do it with their tech yet.

Apple has 5nm locked up. They should be destroying everyone with ARM + 5nm. Instead, we just get fast laptops. That's great for people who love laptops exclusively. it sucks for people who want the fastest SYSTEM possible regardless of form factor.

()

Mon, 16 Aug 2021

4:51 PM - AMD RX 6900XT

So I bought a 6900 XT at the end of june. It replaced a 1080ti. I decided to write a brief review for folks who haven't gotten cards yet.

The short version is I have regrets. The GPU is really great in some titles and performs better than expected. Doom Eternal gets 250+ FPS with raytracing at 3440x1440. Control gets 60 FPS with raytracing. Farcry 5, Dirt 5, and many other games run well and are usually much better than my old 1080ti. But there's a problem. My favorite games are Blizzard titles like Overwatch and Starcraft II. Both of these titles run like crap. With maxed-out settings, starcraft II starts around 114FPS at the beginning of a 1v1 match but drops to 55FPS by late game and averages around 60FPS according to the AMD software. Lowering some of the effects only improved the FPS by a few. Not significant. CPU usage is around 6% during game play on a 3950x. GPU utilization is below 50% according to windows.

Overwatch is similarly a problem. The game is certainly playable on high settings can even peak around 300FPS if the cap is raised. On ultra settings, it struggles to hit 70FPS. With a 144hz display, this is a big let down. The 1080ti could do that well but would overheat after an hour or so on ultra settings. The higher textures seem to kill performance.

My GPU is not using SAM and is not overclocked. A minor overclock does help a bit in overwatch but the power draw isn't worth the gain. I can't enable SAM due to the CSM setting in the bios needing to be off. With that config, I can't dual boot.

When the GPU does well, it blows out the 1080ti but haivng several older games choke or even do worse than the 1080ti is rediculous on a GPU that cost me $1700. I bought the 1080ti used on ebay with a waterblock for $500 about 2 years ago.

My wife has a 6800 XT and it does fine in world of warcraft. Not all blizzard games are hot garbage with AMD cards but several are. I recommend nvidia GPUs if you like blizzard titles.

In retrospect, I probably should have gotten a 3080 instead.

tags: gpu radeon amd

()

Sun, 7 Mar 2021

12:14 AM - NVD feed

Apparently, they created a REST API 2 years ago and set a date for deprecating the feed in the past.

https://csrc.nist.gov/CSRC/media/Projects/National-Vulnerability-Database/documents/web%20service%20documentation/Automation%20Support%20for%20CVE%20Retrieval.pdf

This is a bit of a problem for the security advisory app. The design was always pretty terrible but a workaround for the nvd json feed being in YEARS. The firewall seems to block a lot of the requests and they don't give useful error messges or even a proper error code when it doesn't work.

()

Wed, 1 Apr 2020

Tue, 31 Mar 2020

12:16 AM - Stuck at home

Not loving this lockdown for coronavirus. I understand why we need to do it, but it's starting to get to me.

()

Sun, 22 Mar 2020

2:36 PM - TLS fun

So older TLS versions are deprecated including TLSv1.1. Started working on changing apache configs to exclude them with -TLSv1.1

(1 comment | )

Fri, 1 Nov 2019

9:26 AM - Turning on brotli in apache

Enable mod brotli using a LoadModule line and then add this configuration

<IfModule mod_brotli.c>

BrotliCompressionQuality 6

# To enable globally

AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/json application/x-font-ttf application/vnd.ms-fontobject image/x-icon

BrotliFilterNote Input brotli_input_info

BrotliFilterNote Output brotli_output_info

BrotliFilterNote Ratio brotli_ratio_info

LogFormat '"%r" %{brotli_output_info}n/%{brotli_input_info}n (%{brotli_ratio_info}n%%)' brotli

CustomLog "/var/log/brotli_log" brotli

#Don't compress content which is already compressed

SetEnvIfNoCase Request_URI \

\.(gif|jpe?g|png|swf|woff|woff2) no-brotli dont-vary

#Make sure proxies don't deliver the wrong content

Header append Vary User-Agent env=!dont-vary

</IfModule>

()

Fri, 12 Oct 2018

1:10 AM - Woo hoo

In august, I completed my masters degree. Now I'm nearly completion on 1.0 of my operating system. A lot of bad things have happened this year as well but it's nice to reflect on the positive for a change.

()

Thu, 13 Jul 2017

8:20 PM - Flyway

I've been looking at Flyway, a tool to manage database migrations. It can correct the database version at startup and has a standardized way to manage deltas via standard SQL scripts.

https://flywaydb.org/getstarted/how

tags: flyway

()

8:18 PM - Spring Cloud Netflix

I've been looking into Spring Cloud Netflix lately. It looks pretty cool. There are libraries for proxy of micro service calls (zuul), service discovery (eureka), and circuit breaker functionality (hystrix) to help with high availability.

https://www.todaysoftmag.com/article/1429/micro-service-discovery-using-netflix-eureka

https://github.com/Qkyrie/spring-boot-netflix-example/tree/part1_eureka

https://dzone.com/articles/the-netflix-stack-using-spring-boot-part-2-hystrix

https://github.com/Netflix/zuul

https://spring.io/guides/gs/service-registration-and-discovery/

https://spring.io/guides/gs/circuit-breaker/

https://spring.io/guides/gs/client-side-load-balancing/

()

8:15 PM - More on etags

Here are some interesting links I found for etags.

http://www.baeldung.com/etags-for-rest-with-spring

https://stackoverflow.com/questions/40950005/how-to-embbed-etags-into-crud-api-in-spring-boot

http://docs.spring.io/spring-framework/docs/current/spring-framework-reference/html/mvc.html#mvc-caching-etag-lastmodified

https://github.com/pglebow/rest-data

tags: etags

()

8:14 PM - Etags

I've been looking into etags again. I looked into them several years ago as I found a very bad etag hand rolled implementation for Just Journal. It's an old pre spring approach.

I decided to add a few etags to some common API endpoints in just journal. I think I may have to version the api.

()

Sun, 9 Jul 2017

3:20 PM - Started new job

So I started a new job last week. Now I'm trying to learn a few new things like rxjava.

()

Tue, 20 Jun 2017

3:52 PM - Installing SSL certs from Amazon AWS RDS instances in java

Having problems connecting Java apps to amazon RDS instances? Try installing the CAcerts from amazon as follows. These instructions cover freebsd and Mac OS X.

# (use curl or wget on mac)
fetch http://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem


# create individual files from the bundle for loading into java
split -p "-----BEGIN CERTIFICATE-----" rds-combined-ca-bundle.pem individual-


# load them into your cacerts file in freebsd
find . -iname 'individual*' -exec keytool -import -file {} -alias {} -storepass changeit -keystore /usr/local/openjdk8/jre/lib/security/cacerts \;

# mac version, tweak for your JDK path
find . -iname 'individual*' -exec keytool -import -file {} -alias {} -storepass changeit -keystore /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/security/cacerts \;

tags: ssl aws java keytool rds

()

Tue, 4 Apr 2017

9:14 AM - Apple partially admits mistake with mac pro

According to this article, apple admits the design of the mac pro limited what they could do with it. They also claim they are working on it with next year possible for a refresh.

More waiting.

http://daringfireball.net/2017/04/the_mac_pro_lives

location: Home

()

Mon, 27 Mar 2017

Sun, 19 Feb 2017

10:03 AM -

I doubt one can generalize that a remote software team is more productive. I know that when I worked for Prime Research, I got to work from home for the first 9 months and I got a lot more done that way. Of course, then I ended up working in the office and managing a team.
When you're trying to build something complex, it's impossible to get anything done with distractions. I can code up some front end changes or add a new endpoint for an existing controller in spring without a lot of thought, but if I'm trying to design a major new feature, I need quiet and a white board.
I can say in the last 3 months, I've avoided starting several tickets at work until I knew I could get at least an hour to actually focus on them without meetings or other interruptions. It's happened at least 5 times. The farther I go with my career, the harder it is. I remember when I used to get 2-3 hour blocks of time to work on things. Those were the good old days.

https://ask.slashdot.org/story/17/02/18/223215/slashdot-asks-are-remote-software-teams-more-productive

location: Home
mood: Okay

()

Sun, 12 Feb 2017

2:05 PM - Run windows 3.11 from your browser

It's kind of amazing what they have been able to do with DosBox in browsers. You can now run Windows 3.1 in a web browser and play solitaire or minesweeper, old school!

https://archive.org/details/win3_stock

tags: windows

()

2:03 PM - 8th Gen Intel CPUs still slow

Intel has given up on another CPU generation getting any speed. More 14nm and no more cores. DEFAULT TO SIX CORE GUYS. Sell mobile chips with PERFORMANCE for power users.

https://hardware.slashdot.org/story/17/02/10/1322206/intel-confirms-8th-gen-core-on-14nm-data-center-first-to-new-nodes

tags: intel

()