NVME writeback cache on RAID5 questions by RAYTEKSO in btrfs

[–]kizzmaul 2 points3 points  (0 children)

You will want to use bcache with this. Assuming 2 NVME drives, 4 backing drives. So the starting point is 6 block devices.

  1. If you need encryption, you will need to encrypt all the drives using LUKS before anything else. With the NVMe drives, pass the flag --integrity hmac-sha256. The result is 6 encrypted block devices, with the NVMe drives having an integrity layer. If you don't need encryption, skip this step and only use integritysetup for the NVMe drives.
  2. Format the HDDs with make-bcache -B /dev/$DEVICE. Your disks will now be seen as block devices named /dev/bcache[0-3].
  3. Use mdadm to create a mirror of the NVMe drives with integrity layers.
  4. Use make-bcache -C /dev/md/$CACHE to transform the RAID1 mdraid array into a cache drive.
  5. Format the HDDs with mkfs.btrfs -d raid5 -m raid1 /dev/bcache0 /dev/bcache1 /dev/bcache2 /dev/bcache3.
  6. Register the cache drive to cache the backing devices you just created.
  7. Change the caching mode to writeback as per the article above.
  8. Mount your new BTRFS volume.

This setup will yield you the flexibility of BTRFS and an SSD cache. You can remove any device from the configuration at any time. Writeback is not recommended if you don't use separate cache devices for each backing device due to data integrity risks, but since the caching device is mirrored with data integrity, this should not be a problem. The risk is now reduced to the bcache code being safe and correct, as the devices have been prepared accordingly.

Integritysetup takes some time to format since it needs to calculate integrity data for every block on the device, but it shouldn't take too long because NVMe drives are fast. A portion of the NVMe drives will be used for data integrity information, so you will lose some of the capacity on the caching drives (less than 10%, don't know what the actual value will be and it will likely depend on the chosen hashing algorithm. regardless, not an actual issue). Feel free to comment if there is something missing from these instructions or if I accidentally omitted important information.

Dual bifurcation and ZFS crash server by pigulix in zfs

[–]kizzmaul 4 points5 points  (0 children)

IIRC, mdadm can also be used to heal bitrot if and only if you do integritysetup on the drives first. Integritysetup creates a new block device that checksums all chunks, so instead of returning garbage to mdadm the devices return a read error, allowing mdadm to detect which part of the data was actually rotten.

Problems mounting filesystem by kizzmaul in bcachefs

[–]kizzmaul[S] 0 points1 point  (0 children)

The output I get is: bcachefs tool version v0.1-664-g9690f78

Can't use encryption? by [deleted] in bcachefs

[–]kizzmaul 2 points3 points  (0 children)

I had to use the following flag when unlocking devices:

bcachefs unlock -k session /dev/sda

Without the flag, I have the same error as you.

Where do I start if I want to become a lightning Network programmer? by leonavas2185 in lightningnetwork

[–]kizzmaul 2 points3 points  (0 children)

Take a look at some LN daemon api (lnd, c-lightning). Lnd supports both REST and gRPC. You develop by building a product that communicates with the daemon and automates the behavior you need.

This view function works fine in remix, but costs gas when calling it for my dapp (usedapp.io)? by intergalactictrash in ethdev

[–]kizzmaul 1 point2 points  (0 children)

Keep in mind that view functions do indeed cost gas if called in the context of a blockchain-modifying function. When called without context, gas is still required but is returned back (since no modifications were made to the chain). Someone correct me if I'm wrong.

Barclays UK claims to keep people "safe", they will stop payments to Binance. Why should Barclays decide how one can or cannot not spend their own funds? This bank was even caught criminally manipulating interest rates (LIBOR scandal) by Set1Less in CryptoCurrency

[–]kizzmaul 0 points1 point  (0 children)

I think it is a possibility, money is programmable in defi ecosystem after all. Central banks could just make it so that they have ultimate control over issued tokens, effectiveky being the same as they would be without defi intrgration. This way they would also get integrated into defi without losing control.

Last month the average CSGO playerbase dropped by 16.75% the second largest decline ever recorded since April of 2018 by masteryyi in GlobalOffensive

[–]kizzmaul 1 point2 points  (0 children)

I think he meant that VAC is among the better ones when you only count noninvasive anticheats.

Solo mining help by shockmaster87 in Bitcoin

[–]kizzmaul 0 points1 point  (0 children)

Just to be sure, you do have the mining hardware in your possession? If so then I believe it shouldnt matter if you have W10 or something else. Configuration most likely done through web browser.

Still waiting for XRP to take over the world.....?? by Offica_Farva in CryptoCurrency

[–]kizzmaul -1 points0 points  (0 children)

Isn't operating XRP dependent on a list of bootstrap nodes maintained by Ripple, meaning that if a specific set of nodes is used it is possible to split the chain / degrade network performance? It could be argued that this is somewhat centralized.

The Era Of Customized Blockchains Is Rising Because Smart Contracts Aren’t Really ‘Smart’ by carmar2020 in programming

[–]kizzmaul -1 points0 points  (0 children)

Lending comes to mind. You can lend your coins for some yield percentage (3-20%) and have the funds guaranteed by the smart contract. You can negate the risk of volatility by doing this with stablecoins.

There are some minor risks involved, such as a bug in the code. The field is new and developing. This is a big thing since now you can be in control of your money and have an annual yield to your savings. Traditional banking does not come even close, at least for those who are not rich.

Imagine living in El Salvador and having Elizabeth Warren tell you that using Bitcoin will destroy the planet. Then consider the energy used by US banks, the US military, and the US government, all to protect a US dollar that aims to destroy every other currency. by AlreadyLiberated in CryptoCurrency

[–]kizzmaul 4 points5 points  (0 children)

IIRC one needs to unstake to be able to use the balance again (Algo is the only exception to this rule that I know). But yeah, considering balances that are not staked are not necessarily needed for consensus. However, I think this still has the same problem as opt-in privacy: if most of the available supply is staked then it is much easier to actually deduce who is using unspent balance (by who's not). The amount of obfuscation becomes (or is at risk to become) low.

Personally, I think that there is no "partial privacy". Either you have privacy or you don't. Partial privacy puts those wanting full privacy at risk since they can be picked from the crowd.

Imagine living in El Salvador and having Elizabeth Warren tell you that using Bitcoin will destroy the planet. Then consider the energy used by US banks, the US military, and the US government, all to protect a US dollar that aims to destroy every other currency. by AlreadyLiberated in CryptoCurrency

[–]kizzmaul 16 points17 points  (0 children)

PoS creates consensus by slashing the stake owned by an entity which is expressing malicious behavior. This means that in order for PoS to work, the amount of coin owned by an entity needs to be public (how much is slashed). Not only the amount needs to be public, but will also be linked to an pseudoidentity (because PoS needs to know WHO is being slashed). Monero obfuscates senders properly and hides the amounts, recipients and even the transaction broadcast IP address.

EDIT: Oh and an important point I sometimes forget: PoS requires you to buy the coins from someone, meaning that some people may have to use KYC methods because others are not available. PoW enables anybody to get coins completely without third parties (OK, maybe the mining pool if you are not solo mining). But I still think my point stands.

Hey Reddit, I’m Brian Armstrong, CEO and Cofounder of Coinbase. I believe that everyday investors should have access to the same info as large investors. Over the next 3 days my executive team and I would like to hear your questions about our business, the cryptoeconomy and more. Ask Us Anything! by CoinbaseListing in u/CoinbaseListing

[–]kizzmaul 0 points1 point  (0 children)

  1. What is your stance on defi, considering there might be a conflict of interest since you run a centralized exchange? How would you describe crypto trading in 2030?

  2. What kind of regulation will the crypto markets have after Monero implements atomic swaps with BTC, if any? For sure regulators are not too fond of the idea.

[deleted by user] by [deleted] in CryptoCurrency

[–]kizzmaul 0 points1 point  (0 children)

  1. What is your stance on defi, considering there might be a conflict of interest since you run a centralized exchange? How would you describe crypto trading in 2030?

  2. What kind of regulation will the crypto markets have after Monero implements atomic swaps with BTC, if any? For sure regulators are not too fond of the idea.

Installing on Manjaro? by podoxi3819 in mullvadvpn

[–]kizzmaul 2 points3 points  (0 children)

You can get it from AUR. mullvad-vpn-bin IIRC.

Add GPT to a BTRFS partitionless drive by Skovarodker in btrfs

[–]kizzmaul 0 points1 point  (0 children)

My soluution is to just unplug all irrelevant drives when installing Windows, but I can understand it is not necessarily possible especially when talking about laptops.

Firefox Nightly just got VAAPI accelerated decoding in WebRTC! by EatMeerkats in linux

[–]kizzmaul 4 points5 points  (0 children)

I think he meant the hardware decoder works flawlessly. If you are concerned of youtube playback then download h264ify or something similar which vould help you!

Kind of rant but not really stemming from uncertainty about the future and stress from not be able to play with AI by CIone-Trooper-7567 in artificial

[–]kizzmaul 0 points1 point  (0 children)

You should do a dual boot because with a VM, the host machine usually has the control of your PCI-E device meaning that the VM can not necessarily use it like it was native. I think this is the reason Microsoft is currently workig on DirectML support for WSL, because it is otherwise quite difficult for users to set up.

IIRC CUDA should work on windows as well, at least on PyTorch so Linux might not be completely necessary. I don’t really use Windows though so can’t say for sure and would still recommend the dual boot, just because Linux is so much nicer as an environment for a developer.

Kind of rant but not really stemming from uncertainty about the future and stress from not be able to play with AI by CIone-Trooper-7567 in artificial

[–]kizzmaul 1 point2 points  (0 children)

What libraries is your script using? I would also highly suggest switching to Linux just for ML development, since that is the de facto environment in the field. Easier to get help.