big data + what is the right filesystem ext4 or xfs?
Solution 1
This is addressed in this knowledge base article; the main consideration for you will be the support levels available: Ext4 is supported up to 50TB, XFS up to 500TB. For really big data, you’d probably end up looking at shared storage, which by default means GFS2 on RHEL 7, except that for Hadoop you’d use HDFS or GlusterFS.
For local storage on RHEL the default is XFS and you should generally use that unless you have specific reasons not to.
Solution 2
XFS is an amazing filesystem, especially for large files. If your load involves lots of small files, cleaning up any fragmentation periodically may improve performance. I don't worry about it and use XFS for all loads. It is well supported, so no reason not to use it.
Set aside a machine and disk for your own testing of various filesystems, if you want to find out what is best for your typical work load. Working the test load in steps over the entire disk can tell you something about how the filesystem being tested works.
Testing your load on your machine is the only way to be sure.
Related videos on Youtube
![userash](https://lh3.googleusercontent.com/-ykfe_wHJyD8/AAAAAAAAAAI/AAAAAAAAAA8/DrMN9kW83gI/photo.jpg?sz=256)
userash
Updated on September 18, 2022Comments
-
userash almost 2 years
Following is the content_main.xml layout file code. Above is the image which I got as output of the design:
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android"> <TableLayout android:layout_width="fill_parent" android:layout_height="fill_parent"> <TableRow android:layout_width="match_parent" android:layout_height="0dp" android:weightSum="1" android:layout_weight="0.5"> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Area" android:id="@+id/area" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:id="@+id/imageView" /> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Length" android:id="@+id/length" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Weight" android:id="@+id/weight" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> </TableRow> <TableRow android:layout_width="fill_parent" android:layout_height="0dp" android:weightSum="1" android:layout_weight="0.5"> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Temperature" android:id="@+id/temperature" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Cooking" android:id="@+id/cooking" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Currency" android:id="@+id/currency" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> </TableRow> <TableRow android:layout_width="fill_parent" android:layout_height="0dp" android:weightSum="1" android:layout_weight="0.5"> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Digital Storage" android:id="@+id/storage" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Energy" android:id="@+id/energy" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Fuel Consumption" android:id="@+id/fuel" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> </TableRow> <TableRow android:layout_width="fill_parent" android:layout_height="0dp" android:weightSum="1" android:layout_weight="0.5"> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Power" android:id="@+id/power" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Pressure" android:id="@+id/pressure" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Speed" android:id="@+id/speed" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> </TableRow> <TableRow android:layout_width="fill_parent" android:layout_height="0dp" android:weightSum="1" android:layout_weight="0.5"> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Time" android:id="@+id/time" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Torque" android:id="@+id/torque" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.33"> <Button android:layout_width="match_parent" android:layout_height="match_parent" android:text="Volume" android:id="@+id/volume" android:textSize="12sp" android:onClick="onClick" android:gravity="center|bottom" android:paddingBottom="10dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/> </RelativeLayout> </TableRow> </TableLayout> </RelativeLayout>
Below is the activity_main.xml file:
<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" tools:context="sg.unitconverter.MainActivity"> <android.support.design.widget.AppBarLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:theme="@style/AppTheme.AppBarOverlay"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay" /> </android.support.design.widget.AppBarLayout> <include layout="@layout/content_main"/> </android.support.design.widget.CoordinatorLayout>
The first row having AREA, LENGTH and WEIGHT is different than the rest of the rows. I want all the rows to be equal in size. Can anyone please help?
Below is the manifest XML file:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="sg.unitconverter"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name="sg.unitconverter.MainActivity" android:label="@string/app_name" android:theme="@style/AppTheme.NoActionBar"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="sg.unitconverter.StandardCal" android:label="@string/title_activity_standard_cal" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.ScientificCal" android:label="@string/title_activity_scientific_cal" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitConverter" android:label="@string/title_activity_unit_coverter" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitArea" android:label="@string/title_activity_unit_area" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitLength" android:label="@string/title_activity_unit_length" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitWeight" android:label="@string/title_activity_unit_weight" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitTemperature" android:label="@string/title_activity_unit_temperature" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitCooking" android:label="@string/title_activity_unit_temperature" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitCurrency" android:label="@string/title_activity_unit_area" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitEnergy" android:label="@string/title_activity_unit_length" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitFuel" android:label="@string/title_activity_unit_weight" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitPower" android:label="@string/title_activity_unit_temperature" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitPressure" android:label="@string/title_activity_unit_temperature" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitSpeed" android:label="@string/title_activity_unit_area" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitStorage" android:label="@string/title_activity_unit_length" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitTime" android:label="@string/title_activity_unit_weight" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitTorque" android:label="@string/title_activity_unit_temperature" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.UnitVolume" android:label="@string/title_activity_unit_temperature" android:theme="@style/AppTheme.NoActionBar" /> <activity android:name="sg.unitconverter.History" android:label="@string/title_activity_history" android:theme="@style/AppTheme.NoActionBar"></activity> </application> </manifest>
-
Pavan about 7 yearswhy dont u use recylerview with girdlayout manager developer.android.com/guide/topics/ui/layout/recyclerview.html
-
Pavan about 7 yearsand i can see that currently u have all equal size items
-
userash about 7 years@Pavan, never knew much about it. So I tried only this. Isnt there a solution for the same layout?
-
userash about 7 yearsYou are right. not sure where am I going wrong
-
Pavan about 7 yearswhat is the actual problem, what u trying to acheive?
-
userash about 7 yearsI want all to be displayed equal in size like I did for the other 4 rows
-
userash about 7 yearsOnly the first row size is displayed different
-
OneCricketeer about 6 yearsBoth work fine. I'm running a cluster using both (mostly because the provision scripts create XFS and we forget to reformat the disks before installing Hadoop)
-
mattdm about 6 yearsI assume that you mean Red Hat Enterprise Linux, not 7.2 Red Hat Linux 7.2, right?
-
yael about 6 yearsyes we have redhat 7.2 version
-
-
yael over 5 yearslets say we have kafka machine with disk with 10T , so in that case in spite the disk is small then 50T , and regarding we have kafka machine , what is the most fit FS - ?
-
Stephen Kitt over 5 years“For local storage on RHEL the default is XFS and you should generally use that unless you have specific reasons not to.”