Answers to common DSW questions about instance startup, billing, storage, networking, and environment configuration.
Instance startup
Q: DSW instance fails to start
Troubleshooting: Click the DSW instance name and check the error message on the Events tab.

-
Creation failure due to overdue payments
If your account has an overdue balance, you cannot create a DSW instance. Vouchers cannot be used to offset overdue payments. To check your account balance, log in to the Billing Management console.
Q: Instance type is out of stock or quota is insufficient
Common error messages:
-
"Your requested resource type [ecs.******] is not enough currently" (insufficient resource inventory).
-
"Your resource usage has exceeded the default limitation" (exceeds the 2-GPU quota per region).
-
"The cluster resources are fully utilized" (compute resources are fully occupied).
Cause Analysis:
-
Insufficient public resource inventory
-
Public resources are shared among multiple users, so inventory may be tight during peak hours.
-
Specific GPU instance types, such as high-end GPUs, are more likely to be sold out.
-
Each account has a quota of 2 GPUs per region.
-
-
Insufficient dedicated resource quota
-
The purchased dedicated resource quota has been exhausted.
-
Ineffective quota allocation has resulted in an insufficient quota for a specific workspace.
-
Solutions:
-
Change the instance type: If the selected GPU type is out of stock, try a different GPU type.
-
Switch the region: In the upper-left corner of the PAI console, switch to another region and try to create an instance.
-
Increase the GPU quota: If you need to use public resources with more than 2 GPUs, submit a ticket.
-
Purchase a dedicated resource quota: For guaranteed resource availability, purchase a dedicated resource quota. Purchase general-purpose compute resources and Manage resource quotas.
Q: Execute a Python file on DSW startup
Yes, you can configure a Custom Startup Script when you create a DSW instance or by modifying an existing instance's configuration.

The custom script runs after the image and resources are prepared but before development applications (JupyterLab, Code Server) launch.
-
3-minute timeout: A custom startup script increases instance startup time and will time out after 3 minutes. Avoid including long-running tasks, such as downloading large images, in the script.
-
Log access: After the instance starts, you can find logs generated by the script in the /var/log/user-command/ directory.
Q: Cannot find my DSW instance
The overview page shows instances you created. Switch between instance types and regions to locate your instance.

Q: DSW page is blank or unresponsive
Blank pages, continuously loading Notebooks, or unresponsive Terminals are typically caused by your local environment. Try the following:
-
Clear your browser's cache and try again.
-
Access the page using your browser's incognito or private mode.
-
Switch your network environment, for example, from a corporate network to a mobile hotspot, to rule out firewall restrictions.
-
Try using a different browser, such as Chrome or Firefox.
Q: Data persistence on cloud disk instances
DSW instances that use a Disk for the system disk include instances created in public resource groups and general-purpose resource instances. Data persistence on the system disk for these instances is as follows:
-
Stopping the instance: Data might be lost. If the cloud disk has not been expanded and the instance remains stopped for more than 15 days, the data is erased and cannot be recovered. If the cloud disk has been expanded or the instance has been stopped for 15 days or less, the data is preserved.
-
Restarting the instance: Data is not lost. When an instance is stopped or restarted, all packages installed via
pip, code files, and other data stored on the system disk are retained. -
Changing the instance type: Data is not lost. Adjusting the instance type (such as CPU, memory, or GPU configuration) does not affect data on the system disk.
-
Changing the instance image: Some data may be lost. Mounted datasets and OSS data are unaffected, but system disk content may be reset. Back up your data before changing the image. Mount a dataset, OSS bucket, NAS file system, or CPFS file system.
For general-purpose resource instances that use Temporary Storage as the system disk, all data is lost when the instance is stopped, restarted, or reconfigured (by changing its instance type or image). This occurs even if the resource group is configured with a prepaid cloud disk.
Q: Recover an instance released due to inactivity
No, the data cannot be recovered. If a DSW instance created from public resources has a standard (non-expanded) system disk and remains stopped for more than 15 consecutive days, the system disk is automatically erased.
Stopping, deleting, or releasing an instance
Q: How do I release a DSW instance?
On the DSW instance page, click Stop or Delete.

Important: If you expanded the system disk when you created the DSW instance, the system disk continues to incur charges regardless of whether the instance is running. To completely stop billing for the DSW instance, you must delete it.
Q: Why can't I find my DSW instance?
If you cannot find the instance, try switching to a different region or workspace.

Q: How do I release a free trial resource package?
You do not need to stop or release free trial resource packages.
Q: How do I stop all charges for a DSW instance? What is the difference between Stop and Delete?
-
Stopping an instance: Releases the instance's compute resources (CPU/GPU) and pauses compute charges. Note: An expanded system disk continues to incur charges.
-
Deleting an instance: Permanently deletes the instance and all its resources, including the system disk. All associated billing stops completely.
How to choose:
-
Stop: If you don't need the instance for a while but want to retain its data and environment to restart it later.
-
Delete: If you no longer need the instance and want to stop all billing. Be sure to back up your data first.
Q: Why is my DSW instance stuck in the Stopping or Deleting state for a long time?
The system needs to safely terminate tasks, save state, and reclaim resources. Common causes of extended wait times:
-
Some processes in the instance did not exit cleanly.
-
High memory usage prevents the instance from responding to the shutdown command.
If this occurs, wait a few minutes and then refresh the page. The instance should stop normally.
Q: Will I lose my data and code after I stop or delete a DSW instance?
Data retention depends on the operation you perform and your instance's system disk type.
-
Stopping an instance:
When an instance is stopped, data retention depends on its system disk type.
-
Instances with a cloud disk system disk (most pay-as-you-go specifications and general-purpose resource instances that use a Disk as the system disk): If the cloud disk was not expanded and the instance is stopped for more than 15 days, the data is cleared and cannot be recovered. If the cloud disk was expanded or the instance has been stopped for 15 days or less, the data is not lost.
-
Instances that use Temporary Storage as the system disk: When you stop the instance, its data is deleted and cannot be recovered.
-
-
Deleting an instance:
All data on its system disk is permanently erased and cannot be recovered. Therefore, make sure to back up all important data before you delete the instance.
Q: Why does my running DSW instance stop automatically?
The instance is configured with an idle auto-shutdown policy, enabled by default for free trial instances.
-
Trigger condition: The CPU and GPU utilization stays below a set threshold for 3 consecutive hours.
-
Recommended actions:
-
Manual stop: To ensure resource savings, manually stop the instance when it is not in use. The auto-shutdown policy is not guaranteed to trigger every time.
-
Modify the policy: If you need to run long-running tasks, modify or disable this policy.
-
Q: Why do I still see a "Running" status or receive bills after stopping or deleting all my DSW instances?
Check the following common causes:
-
You may be confusing a resource package with an instance. The "Running" status can refer to a resource package (such as "250 compute hours per month"), not an instance. A resource package remains active until it expires, and its status is independent of any instance.
-
Stopping an instance only pauses compute charges. An expanded system disk continues to incur storage charges.
-
Billing delay. Billing is not real-time, and bills may be generated several hours after you use a resource. For example, charges incurred in the morning might not appear on your bill until the afternoon.
Billing
Q: DSW billing and idle charges
-
DSW supports subscription and pay-as-you-go billing methods. For billing details, see DSW Billing.
-
With pay-as-you-go, you are charged while your instance is running. Billing continues as long as the instance is in a 'running' state, even if you are not executing code or have the WebIDE open.
Q: How do I view my DSW bill?
Pay-as-you-go users can view bill details on the Expenses and Costs page. View bill details.
Q: Charges after stopping an instance
Charges that continue after you stop an instance typically occur for two main reasons:
-
Billing delay: For pay-as-you-go DSW instances, there is a delay in bill generation and deductions. A charge you receive may be for usage that occurred before the instance was stopped, not for usage after it was stopped.
-
System disk expansion: If you expanded the system disk when you created the DSW instance, you continue to incur storage fees for the disk, even when the instance is in a 'stopped' state. An expanded system disk cannot be downsized. To stop all storage charges, you must delete the instance. Before you delete the instance, make sure to back up all necessary data. Data cannot be recovered after an instance is deleted.
To check if the system disk was expanded, click the instance name to go to the instance details page. Check if the system disk capacity exceeds the free quota. Instances in a public resource group receive 100 GiB of free capacity.

Q: Stop all billing
-
The only way to completely stop all billing for a DSW instance is to delete the instance. Before you delete the instance, make sure to back up all necessary data. Data cannot be recovered after the instance is deleted.

-
Switch between different workspaces and regions to ensure all instances are deleted.

Q: Pay-as-you-go per-minute billing
Pay-as-you-go instances are billed by the minute. The formula is: Bill Amount = (Hourly Rate / 60) × Actual Service Duration (in minutes).
Model pulling
Q: "Failed to pull image" error for private repositories
To create a DSW instance using an image URL from a private repository, such as a private Alibaba Cloud Container Registry (ACR) repository, you must enter the username and password for the repository.

Image usage
Q: Image creation error: "insufficient capacity of ephemeral storage"
Cause: This error occurs when the available space on the system disk is insufficient for the image's write layer.
Solution: In the DSW Terminal, run df -h to check disk usage. Ensure that the space used by the overlay does not exceed the available space on /dev/vda4. If it does, resolve this by setting a Custom Excluded Path when creating the image.


Q: How to use Docker images in DSW?
-
To start a DSW instance from a Docker image, push the image to Alibaba Cloud Container Registry (ACR), add it as a custom image in your PAI workspace, and then select it when creating the instance.
-
To push a Docker image to Container Registry (ACR), see Use a Personal Edition instance to push and pull images.
-
To add a PAI custom image, see custom images.
-
-
To package the current DSW environment as an image for starting other instances or deploying models, see Create a DSW Instance Image.
-
Install and use Docker in the DSW cloud IDE: Only DSW instances created from a Lingjun Resource Group or a Version 1.0 General Resource Group support the nested container feature. Manage Nested Containers with DockerBoard and Use Docker in DSW.
Q: Why does DSW image creation fail or time out?
-
Image size limit exceeded: When you create a DSW image, a single image layer cannot exceed 10 GiB. Otherwise, the build fails. Reduce the image size to prevent this error.
-
Region mismatch: The DSW instance and the Container Registry (ACR) instance must be in the same region. Otherwise, the system cannot find the corresponding image repository during image creation.
-
Insufficient system disk space: During image creation, if the available system disk space is less than the data size required for the image layer, an "insufficient capacity of ephemeral storage" error occurs.
-
Network issues: The Personal Edition of ACR pushes images over the public network. Network jitter or long transfer times can cause large image pushes to fail or time out. For faster and more stable performance, bind an Enterprise Edition of ACR instance to the same VPC as the DSW instance to push images over the internal network.
Q: "Create Image" button is disabled or image repository not found
-
Incorrect instance status: You can use the "Create Image" feature only on
runningDSW instances. The button is disabled if the instance isstoppedor in any other state. -
Prerequisites not met or configuration error:
-
You must first create a Container Registry (ACR) instance in the same region as the DSW instance, and then create a namespace and an image repository within it.
-
Ensure that the DSW instance and the ACR instance are in the same region.
-
Q: Image creation error: "Push container failed..."
When creating an image, ensure that the data in a single layer does not exceed 10 GiB; otherwise, the build will fail. For DSW instances that use public resource groups, you can set a Custom Exclusion Path to exclude files or directories from the final image. Alternatively, you can mount a storage path, such as an OSS path, to store and access your data.

System disk expansion
System disk size and usage
By default, files and data in a DSW instance are stored on the system disk, which comes with a free quota.
-
Check the free quota
DSW instances in a public resource group include a 100 GiB free quota. General-purpose compute resources include a free system disk only with specific instance types. Lingjun Intelligent Computing Resources do not provide free cloud disks. Check the free quota in the System Disk section of the instance configuration page:
-
Click the instance name on the Instance List page.
-
In the upper-right corner, click Change Settings and scroll down to the System Disk section.

-
-
Check system disk usage
Click the DSW instance name to view the system disk usage in the Environment Information section.

-
What to do when the system disk is full
If system disk usage exceeds the free quota, you can expand the system disk or mount a dataset.
System disk scale-in
No. A DSW system disk cannot be scaled in after an expansion. If a DSW instance's system disk is larger than you need, you can back up important information by using a dataset, OSS, NAS, or CPFS. After the backup, you can delete the DSW instance to stop billing. Then, create a new DSW instance with an appropriate system disk size.
Mount configuration
Q: Mounting and using a custom file system
You can mount an OSS, NAS, or CPFS file system when you create a new instance. You can then access the mounted directory through the DSW Terminal to view and use your files.
Currently, DSW supports mounting file systems only within the same region as the instance during creation. Create a DSW instance.
Q: NAS mount error: "MountTarget ... is not in VPC"
-
Cause: This error occurs because you configured a mount point when creating the NAS dataset.
-
Solution: Leave the mount point field empty when you create the dataset.

Q: Mount error: "wrong fs type, bad option, bad superblock"
-
Symptom

-
Solution
Before you run the
mountcommand, install the nfs-utils package.yum install nfs-utils
Q: "Input/output error" when accessing a mounted OSS dataset

This issue occurs because the role lacks the required OSS access permissions (AliyunPAIDLCAccessingOSSRole). For specific authorization steps, see PAI service account authorization.
Q: Reducing OOM risk when mounting OSS with JindoFuse
You can resolve this issue using one of two methods:
-
Method 1: Use JindoFuse 6.8.1, which has optimized memory usage.
{ "fs.jindo.fuse.pod.image.tag":"6.8.1" }
-
Method 2: Use ossfs.
When you submit the task, specify the following:
{ "mountType": "ossfs" }
To reduce metadata cache usage when listing directory contents and mitigate OOM issues, you can disable the readdirplus optimization with the following configuration:
{ "mountType": "ossfs", "fs.ossfs.args": "-oreaddirplus=false" }
Q: Mounted OSS not visible in the JupyterLab file browser
This is because the DSW file browser shows the instance's working directory by default, which is typically /mnt/workspace. The mount path you specified for OSS, for example, /mnt/data, is not under the default working directory, so the file browser does not display it in the file list.
Solutions:
-
Access through code: Your files are already successfully mounted. In your code, you must use the full mount path to access them, such as
open('/mnt/data/my_file.csv'). -
Change the mount point: To easily view the files in the UI, you can set the mount path to a subdirectory of the working directory during configuration, such as
/mnt/workspace/my_oss_data. After the mount is complete, you can see your OSS files in themy_oss_datafolder in the file browser. -
Access through the Terminal: You can use the
cd /mnt/datacommand in the DSW Terminal to change to the mounted directory, and then use commands likelsto view and manage files.
Q: OSS mount errors: "Transport endpoint not connected" or "Input/output error"
This error indicates that the DSW instance has lost its mount connection to OSS. Possible causes and troubleshooting steps are as follows:
-
RAM role permission issue: Check if the RAM role configured for your DSW instance has permissions to access OSS (for example,
AliyunPAIDLCAccessingOSSRole). Insufficient permissions are a common cause of this connection failure. -
Insufficient resources for the mount service: During high-intensity random read/write operations or operations on a large number of small files, the
ossfsorJindoFuseprocess responsible for mounting may crash due to an Out of Memory (OOM) error. In the advanced mount configuration, you can disable the metadata cache or increase the memory allocation. JindoFuse. -
Restore the connection:
-
For mounts configured at startup, the easiest way to restore the connection is to restart the DSW instance. The system automatically remounts the path.
-
You can also use the PAI SDK to execute a dynamic mount command to remount the path without restarting the instance.
-
Q: Supported mount types in DSW
DSW can mount cloud storage services like OSS, NAS, and CPFS, either by creating datasets or by directly mounting paths.
-
Alibaba Cloud Drive is not supported: DSW does not currently support directly mounting a personal Alibaba Cloud Drive. We recommend storing data that needs to be processed in OSS.
-
Mounting MaxCompute tables is not supported: MaxCompute (formerly ODPS) tables cannot be directly mounted as a file system in DSW. Use the SDKs or APIs provided by PAI to read and write this data. Read and write MaxCompute tables using PyODPS.
Q: Data persistence and migration for DSW instances
The system disk of a DSW instance is ephemeral storage. For instances in a public resource group, data is cleared if the instance is stopped for more than 15 days. For instances in a dedicated resource group, data on the system disk is also cleared when the instance is stopped or deleted.
To persist your code and data and migrate them between instances, use externally mounted storage.
-
Persistence solution: Save all your important data, code, and models under mounted OSS or NAS paths. This ensures your assets remain safe in your own OSS or NAS even if the DSW instance is deleted.
-
Migration solution: When you need to migrate data from one DSW instance to another, simply mount the same OSS or NAS path that contains the data to the new instance. This is the most convenient way to migrate data.
Q: Working directory files not appearing in mounted OSS
The default OSS mount path is /mnt/data, which is separate from the default DSW working directory at /mnt/workspace. Therefore, files in your working directory are not automatically visible in the mounted OSS bucket. To make them visible, copy them to the mount path at /mnt/data. After copying, the files will appear in your OSS bucket.
cp -r /mnt/workspace/. /mnt/data/
Data reading, uploading, and downloading
Q: Reading data from OSS in DSW
Use a Python SDK or API to read data from OSS. Read and write data in OSS.
Q: Uploading or downloading a folder
DSW does not support uploading or downloading folders directly. As a workaround, compress the folder into a single file. The DSW Terminal includes standard Linux tools, such as tar, gzip, and unzip, to compress and extract files. The following example demonstrates how to use tar.
-
Run
tar --versionto check if tar is installed. If not, install it using the following commands.# Installation command for Debian-based systems (for example, Ubuntu) sudo apt install tar # Installation command for Red Hat-based systems (for example, CentOS or Fedora) sudo yum install tar -
Compressing and extracting a folder.
# Compress a folder. Replace /path/to/directory with the path to your folder. tar -cvf archive_name.tar /path/to/directory # Extract a folder. tar -xvf archive_name.tar
Q: Transferring data between DSW instances
You can use one of the following methods:
-
Mount a dataset, OSS, NAS, or CPFS: Mount the same dataset or OSS path to both DSW instances. Both instances can then access any data stored in the shared path.
-
Upload and download files: Download the data from the source DSW instance and then upload it to the target DSW instance.
Q: Download fails or is unresponsive
This issue is typically caused by network congestion or browser issues. Try the following steps:
-
Wait a moment. Large files take longer to respond and download.
-
Switch to a different browser or use your browser's incognito mode and try again.
-
If you are downloading large files (over 200 MB) or have an unstable network connection, we recommend mounting OSS to download them.
Q: File Transfer Station is out of space
The File Transfer Station has a total capacity of 10 GB. To free up space, go to its management page and clear the transfer station files. If the page does not update automatically, refresh your browser.
Q: Redirection to File Transfer Station during upload
This is the expected behavior. To ensure upload stability and speed, all files larger than 10 MB are automatically routed through the File Transfer Station. They are then saved to your instance after the transfer is complete.
Q: Uploading large files or datasets to DSW
The system disk provides only limited temporary storage. Instead of uploading large files directly, upload data to OSS and mount it to your DSW instance. Mount a dataset, OSS, NAS, or CPFS.
Remote connection
Q: ProxyClient SSH connection disconnects
When you connect to a DSW instance over SSH, your session may disconnect after a period of inactivity. You may see the following error:

To permanently fix this issue, we recommend using the more stable Remote connection: Direct SSH connection method.
Q: Cannot open local folders in VSCode
This issue is typically caused by the VSCode client. We recommend uploading the files from your local folder to your DSW instance. For instructions, see Upload and download files.
Q: Direct SSH connection setup failsFailed to update private zone items: Failed to add zone
This error occurs when internal DNS resolution is disabled. To enable it, see Enable internal DNS resolution.
Network issues
Q: Slow network downloads
DSW and DLC instances use a shared gateway by default. Bandwidth limitations may cause slow downloads for large files. Solutions:
-
If you are downloading resources from within China: Create an Internet NAT gateway for the instance's VPC, associate an EIP, and configure an SNAT entry. Improve public network access speed by using a dedicated gateway.
Note: Confirm that the Rate Limit for Internet Access switch is enabled for the workspace. Configure a workspace > General Configuration.

-
If you are downloading resources from outside China, you can use Global Accelerator (GA) to pull models or container images.
-
Alternatively, you can download the resource files to your local machine and then upload them to your DSW instance. You can also upload them to Object Storage Service (OSS) and then mount the OSS bucket to your DSW instance.
Q: Public IP for DSW instances
By default, a DSW instance is not assigned a public IP address. If your instance needs internet access, configure a NAT Gateway or use an EIP. Network configuration.
Q: Public port reuse with NAT Gateway
When you expose multiple DSW custom services through the same NAT Gateway, each service must use a unique port for public access.
Q: DSW instance cannot access the internet
By default, a DSW instance can access the internet by using the Public Gateway. If you cannot access the internet, check on the instance configuration page whether Private Gateway is selected for the Internet Access Gateway. If a dedicated gateway is selected, you must configure an EIP and an SNAT entry. For more information, see Improve public network access speed by using a dedicated gateway. Otherwise, select Public Gateway.

Q: "Network is unreachable" error with Hugging Face
Pulling models from outside China (for example, huggingface.co) may fail due to cross-region network issues. Create a Global Accelerator (GA) instance to accelerate access. Pull models and container images from outside China.
Installing third-party libraries
Q: How do I use third-party libraries in DSW?
DSW supports installing third-party libraries. Manage third-party libraries.
Q: Are packages installed with pip and my code lost after stopping a DSW instance?
If you use a cloud disk as the system disk, your data will not be lost. All data on the instance's disk, including the environments in the /mnt/workspace and /root directories, is preserved. The next time you start the instance, all your environments and files are still available. Data is permanently cleared only when you delete the instance.
Q: Why does a third-party library I installed not work?
If you install a third-party library by using the pip command but cannot find the library when you run the import command, first try restarting the service or Kernel. If the error persists, check which environment you are using. By default, DSW installs third-party libraries to the Python 3 environment. To install a library in a different environment, you must first switch to that environment. The following example shows how to do this.
Install in the Python 2 environment.
source activate python2
pip install --user xxx
Install in the TensorFlow 2.0 environment.
source activate tf2
pip install --user xxx
Replace xxx with the name of the third-party library you want to install.
Q: How to fix pip install failures in DSW from dependency or version errors?
This issue is typically caused by an incompatible environment. To troubleshoot this issue, follow these steps in order:
-
Recommended solution: Change the image. Stop the current instance, create a new DSW instance, and select a different official image. For example, if the PyTorch 2.1 image does not work, try the PyTorch 2.3 image. You can also try an image from the
modelscopeseries, which typically offers better compatibility. -
Install a specific version. Check the official documentation for the library to find a version that supports your current DSW environment, including the Python and CUDA versions. Then, run
pip install package_name==x.y.z. -
Change the download source. Try using a different mirror, such as the Tsinghua University mirror:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple <yourLibraryName>.
Q: Why is a library installed in the Terminal not found in a Jupyter Notebook?
This issue can occur if the Terminal and Jupyter Notebook use different Python environments. You can run the which python command to check which Python environment is active. Alternatively, you can install the required library directly in the Notebook, for example:

Q: The CUDA driver version is too low. Should I upgrade the NVIDIA driver in DSW?
Do not upgrade the driver version. DSW instances have pre-installed, locked drivers and CUDA. You cannot modify them manually — doing so can irreparably damage the instance. Instead, stop the current instance, create a new one, and select an official image with a higher CUDA version.
For example, the official image modelscope:1.9.4-pytorch2.0.1tensorflow2.13.0-gpu-py38-cu118-ubuntu20.04 has cu118 in its name, which indicates CUDA version 11.8.
Q: Can I use Docker in DSW to deploy my application?
To use Docker with Lingjun resources, submit a ticket to be added to the allowlist. DSW instances that do not use Lingjun resources do not currently support running Docker inside the instance container.
Q: How can I extract files if the unzip or 7z command is missing?
You can use the apt-get command to install the tools.
-
To install
unzip: in the Terminal, runapt-get update && apt-get install -y unzip. Then, useunzip your_file.zip. -
To install
p7zip(for 7z files): in the Terminal, runapt-get update && apt-get install -y p7zip-full. Then, use7z x your_file.7z.
Q: Why does the installation of a third-party library get stuck or time out?
If the installation of a third-party library is stuck, times out, or is extremely slow, this is typically a network issue. Follow these steps to troubleshoot the issue:
Step 1: Check network connectivity
In the Terminal, run the ping www.aliyun.com command to test whether the instance can access the internet. If the network is unreachable, proceed to Step 2.
Step 2: Check the gateway configuration
On the instance configuration page, check the type of the Internet Access Gateway:
-
Public Gateway: By default, DSW uses a Public Gateway to access the internet. You can confirm the gateway type on the DSW instance configuration page. The Public Gateway has limited bandwidth, which may be insufficient for downloading large files. In this case, you can switch to a Dedicated Gateway.
-
Dedicated Gateway: Provides higher network speeds. You must create an Internet NAT Gateway, associate an EIP, and configure an SNAT entry in the VPC. Otherwise, you cannot access the internet. Improve public network access speed through a dedicated gateway.
Step 3: Change the pip download source
DSW uses an Alibaba Cloud mirror source by default, but issues can occur during peak hours or due to network fluctuations. We recommend switching to a different mirror source in China:
# Use the Tsinghua University mirror (recommended)
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn <yourLibraryName>
# Use the USTC mirror
pip install -i https://pypi.mirrors.ustc.edu.cn/simple --trusted-host pypi.mirrors.ustc.edu.cn <yourLibraryName>
# Use the Douban mirror
pip install -i https://pypi.doubanio.com/simple --trusted-host pypi.doubanio.com <yourLibraryName>
To permanently change the default pip source, see View or change the pip source.
Step 4: Use offline installation
If the network is unreachable or very unstable, you can perform an offline installation:
-
On your local computer (with good network connectivity), download the
.whllibrary file:# Run on your local computer pip download <yourLibraryName> -d ./packages -
Upload the downloaded
.whlfile to your DSW instance. For instructions, see Upload and download files. -
In DSW, perform the offline installation:
pip install /path/to/your-package.whl
Q: How do I get root permissions in the DSW WebIDE?
Most official DSW images run as root by default. If the command prompt shows root@..., you already have root permissions. You can safely ignore the "not recommended to run as root" warning during pip installation. If your image does not use root, switch to an image that supports root access.
Q: How do I start X server in DSW?
DSW does not support starting X server.
Model deployment
Deploy a DSW model
-
Use the EAS model deployment service
After modeling, use PAI-EAS to deploy the model as an online service. Deploy a model as an online service.
-
Download the model for local deployment
You can right-click a model generated by DSW to download it to your local machine.
Instance running
Q: Why am I prompted to log in again after inactivity?
For security, your DSW login session expires after three hours. You must log in again, but this does not interrupt running tasks. To run long tasks, use thenohup command in the DSW Terminal.
Q: Do tasks continue to run after I close my browser or PC?
Yes. A DSW instance runs in the cloud, independent of your local device. However, instances with an idle auto-shutdown policy (enabled by default for free trials) may stop automatically if CPU and GPU utilization remains below a threshold.
Q: Why can't DSW start Docker?
Because DSW runs in a container, DSW does not support installing Docker. The corresponding CUDA version is pre-installed on the underlying virtual machine and cannot be changed. You can use nvidia-smi to view the corresponding CUDA version.
Q: Why is tab auto-completion unavailable in the terminal?
Some images have usage restrictions that disable these features. To enable them, type bash in the Terminal and press Enter.
Q: What if the instance specifications are insufficient?
You can update the DSW instance specifications by following these steps:
-
In the DSW instance list, click the instance name to open the instance details page.
-
On the Instance Settings tab, click Change Settings.
-
In the Change Instance Settings panel, update the instance specifications.
NoteUpdating the specifications of a running instance will cause it to restart immediately. Ensure that you have saved your work before proceeding.
Q: How do I free up memory?
If high memory usage is affecting your work, you can resolve the issue in one of two ways.
-
If the Terminal is unresponsive due to high memory usage, click Stop Instance in the upper-right corner. Alternatively, you can return to the DSW console and click the Stop button for that instance. Wait for the instance to stop before you restart it.
-
If the Terminal is still responsive, you can run the
topcommand to view process memory usage. The%MEMcolumn shows the percentage of memory used, andPIDis the process ID.
To terminate a memory-intensive process, run the following command:
kill PIDReplace PID with the process ID of the process you want to terminate. After you run the command, memory usage decreases.

Q: RuntimeError: CUDA error: too many resources requested for launch
Cause: This error occurs when a CUDA kernel requests more resources than are available, which is typically caused by GPU hardware limitations.
Solution: Try restarting the instance and running the program again. If the problem persists, select a GPU instance with higher specifications.
Q: Can I create swap space if the instance runs out of memory?
No. DSW runs in a container and does not support creating or managing swap space.
This is for the following reasons:
-
Permission restrictions: The kernel permissions of the container are restricted, which prevents it from mounting a swap file. You cannot bypass the resource policies of the host even if you obtain root permissions in the container.
-
Platform policy: The platform schedules and restricts resources to ensure the stability and security of the multitenancy environment.
Suggestion: If memory is insufficient, optimize your code or upgrade your instance specifications.





